add_colour | R Documentation |
This is a helper function used by ‘theme_cau()'. You shouldn’t need to call it directly.
add_colour(p, color_dim, type = c("colour", "fill"), discrete_cutoff = 9)
p |
Plot object created by 'p <- ggplot(...)' etc |
color_dim |
Which dimension has been set as the colour aesthetic in 'ggplot()' |
type |
Whether it's a fill or colour aesthetic |
discrete_cutoff |
Cutoff below which unique values are assumed to be categorical rather than continuous |
A ggplot layer that will be added to the 'p' plot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.