View source: R/gg_colour_hue.R
gg_colour_hue | R Documentation |
Get n colours, evenly spaced along the colour wheel. Just like the ones
ggplot2::scale_colour_hue()
is using.
gg_colour_hue(n)
n |
Either the number of colours to generate, or a character vector which will be used as names for the returned colours. |
A vector of character strings which can be used as color specifications by R graphics functions. The vector is named if n is a character vector.
gg_colour_hue(5)
gg_colour_hue(letters[1:3])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.