TJ Mahr hinted to this Canva webpage on Twitter. It contains 100 beautiful color palettes including their hexadecimal color codes. For instance, these three below.
The great thing is that these color palettes are include in the
ggthemes package in R. Hence, the following code uses this Nightlife palette directly in an R script, resulting in the plot below.
library(ggplot2) library(ggthemes) ggplot(mtcars) + aes(x = disp, y = mpg, color = factor(cyl)) + geom_point(size = 6) + ggthemes::scale_color_canva(palette = "Nightlife")
What’s your favorite color palette among these 100?