Jan-Willem Tulp pointed out this amazing tool to choose a color palette: https://colorcurves.app
You can choose between either a continuous palette or a discrete palette, with groups that is.
Here’s an example of an exponential color curve for a continuous palette using colorcurves.app:
There are numerous functions you can use to make your “gradient color curve“.
Similarly, you can specify the lightness of the different colors along your curve.
Here’s another example, of an color arc for a categorical / discrete palette using colorcurves.app:
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.
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?