| hexn | R Documentation |
Generate a vector of hex colour codes for the desired number of colours.
Colours are generated by evenly splitting hue in the range [0,360]
in the HCL colour space using grDevices::hcl.
The output is meant to follow the default colours used in ggplot2::ggplot2.
hexn(n, show = FALSE)
n |
|
show |
|
A vector of hex colour codes that can be used for plotting.
hexn(6,FALSE)
hexn(4,TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.