gg_color_hue | R Documentation |
ggplot2-like colour scale in HCL space
gg_color_hue(n, hue_min = 8, hue_max = 290, l = 52, c = 100)
n |
Number of colours to return. |
hue_min |
Minimum hue value in the range |
hue_max |
Maximum hue value in the range |
l |
Luminance in the range |
c |
Chroma of the colour. |
See the grDevices::hcl()
function for details.
gg_color_hue(10)
plot(1:6, col = gg_color_hue(6), pch = 20, cex = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.