gghues | R Documentation |
This will emulate ggplot2's hues, which are equally spaced hues around the color wheel, starting from 15.
gghues(n, start = 15)
n |
The Numeric; number of hues to generate. |
start |
Numeric; the place on the color wheel to start. ggplot2 default is 15. |
A vector of hues
n <- 10
gghues(3)
barplot(rep(1,n), col=gghues(n), names=gghues(n))
barplot(rep(1,n), col=gghues(n, start=15+180), names=gghues(n, start=15+180))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.