rcolors | R Documentation |
Creates a vector of randomly-generated colors.
rcolors(n)
n |
Vector length |
A vector of colors
Matt Tyers
n <- 1000
cols <- rcolors(n)
x <- runif(n)
y <- runif(n)
plot(x,y, col=cols, pch=16)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.