gg.rainbow | R Documentation |
Mimic default colour palette of ggplot2. Credit: John Colby, https://stackoverflow.com/questions/8197559/emulate-ggplot2-default-color-palette
gg.rainbow(n, c = 100, l = 65, alpha = 1)
n: |
number of colours to generate |
c: |
chroma, radial component of hue colour space (saturation) |
l: |
luminance in range [0, 100], vertical component of hue colour space (converges to black as l approaches 0) |
vector of colour specification strings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.