rich_colors | R Documentation |
Create a vector of n colors that are perceptually equidistant and in an order that is easy to interpret
rich_colors(n, alpha = 1)
n |
The number of colors to produce |
alpha |
Transparency, from 0 (fully transparent) to 1 (opaque) |
A vector of n colors
library(gfutilities)
ncol <- 10
x <- rich_colors(ncol, 1)
plot(1:ncol, 1:ncol, col = x, pch = 20, cex = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.