grcols | R Documentation |
This chooses n
colour hues using a sequence generated by the Golden
Ratio.
grcols(n, s = 0.5, v = 1, alpha = 1)
n |
number of colors |
s, v |
numeric vectors of values in the range |
alpha |
numeric vector of values in the range |
hsv
plot(1:5, 1:5, col = grcols(5), pch = 20, cex = 3)
plot(c(1, 6), c(0, 1), type = 'n', axes = FALSE,
bty = 'n', xlab = '', ylab = '')
rect(1:5, 0, 2:6, 1, col = grcols(5), border = NA)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.