The palette based proposed by Okabe and Ito (2008).
palette_okabeito(palette = "full_amber", reverse = FALSE, order = 1:9, ...)palette_oi(palette = "full_amber", reverse = FALSE, order = 1:9, ...)
Character name of palette. Depending on the color scale, can
be "full"
, "ice"
, "rainbow"
, "complement"
,
"contrast"
, "light"
(for dark themes), "black_first"
, full_original
,
or black_first_original
.
Boolean indicating whether the palette should be reversed.
A vector of numbers from 1 to 9 indicating the order of colors to use
(default: 1:9
)
Additional arguments to pass to colorRampPalette()
.
This function is usually not called directly, but from within
scale_color_material()
.
Okabe, M., & Ito, K. (2008). Color universal design (CUD): How to make figures and presentations that are friendly to colorblind people. https://jfly.uni-koeln.de/color/#pallet (Original work published 2002)