paletteer: Hundreds of color palettes in R
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Looking for just the right colors for your data visualization?
I often cover tools to pick color palettes on my website (e.g. here, here, or here) and also host a comprehensive list of color packages in my R programming resources overview.
However, paletteer
is by far my favorite package for customizing your colors in R!
The paletteer
package offers direct access to 1759 color palettes, from 50 different packages!
After installing and loading the package, paletteer
works as easy as just adding one additional line of code to your ggplot:
install.packages("paletteer") library(paletteer) install.packages("ggplot2") library(ggplot2) ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) + geom_point() + scale_color_paletteer_d("nord::aurora")
paletteer
offers a combined collection of hundreds of other color palettes offered in the R programming environment, so you are sure you will find a palette that you like! Here’s the list copied below, but this github repo provides more detailed information about the package contents.
Let me know what you like about the package and do share any beautiful data visualizations you create with it!
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.