ggplot.color | R Documentation |
This function can be used to produce color vector from ggplot2.
ggplot.color(n)
n |
the number of colors.
x <- 1:10
barplot(x,col=ggplot.color(length(x)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.