cm.colors.strong | R Documentation |
Altered version of cm.colors that uses full saturation to get stronger colors.
cm.colors.strong(n, alpha = 1)
n |
Number of color groups |
alpha |
Alpha level |
Character vector of colors
# Character string output
cm.colors.strong(5)
# Plot to show these
sl <- 21
sx <- seq(0,1,l=sl)
plot(sx,sin(2*pi*sx), cex=5, col=cm.colors.strong(sl), pch=19);points(sx,sin(2*pi*sx), cex=5)
plot(sx,sin(2*pi*sx), cex=5, col=cm.colors(sl), pch=19);points(sx,sin(2*pi*sx), cex=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.