catPal | R Documentation |
Categorical color palette according to IwantHue as displayed on https://rockcontent.com/blog/subtleties-of-color-different-types-of-data-require-different-color-schemes/
catPal(n = 12, set = 1, alpha = 1)
n |
Number of colors, max 12. DEFAULT: 12 |
set |
Integer for which set to use. Currently, only 1 is implemented. |
alpha |
Transparency (0=transparent, 1=fully colored). DEFAULT: 1 |
Character string vector with color names
Berry Boessenkool, berry-b@gmx.de, Apr 2019
showPal
, seqPal
, divPal
plot(rep(1,12), pch=16, cex=5, col=catPal(12), xaxt="n")
showPal()
plot(cumsum(rnorm(40)), type="l", col=catPal()[1], ylim=c(-10,10))
for(i in 2:6) lines(cumsum(rnorm(40)), col=catPal()[i])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.