jwstpalettes is an r package of colour palettes inspired by images from nasa's james webb space telescope. v0.1.0, more palettes and features will be added soon.
install using devtoolsdevtools::install_github("perikarya/jwstpalettes")
library(jwstpalettes)
plot(dist ~ speed, data = cars, pch = 19, col = jwst_palette("carina", 3))
hist(cars$speed, breaks = 25, main = "", xlab = "Speed", col = jwst_palette("tarantula2", 25, type = "continuous"))
levelplot(volcano, col.regions = jwst_palette("dimorphos", 100, type = "continuous"))
ggplot(data = diamonds, aes(x = cut, group = clarity, fill = clarity)) +
geom_density(adjust = 3, position = "stack", alpha = 0.8, color = NA) +
scale_fill_discrete(type = jwst_palette("neptune")) +
theme(panel.grid.minor = element_blank())