View source: R/PaletteColors.R
scale_color_gogh | R Documentation |
Creating the color scale for Van Gogh Colors
scale_color_gogh(
palette = "starryNight",
discrete = TRUE,
reverse = FALSE,
...
)
palette |
the ggRtsy painting color palette of choice |
discrete |
Boolean if color aesthetic is discrete |
reverse |
Boolean, will be TRUE if the user wants the palette reversed |
... |
further arguments passed to [ggRtsy::scale_color_gogh()] |
A ggplot2 color scale. If 'discrete' is TRUE, it returns a discrete color scale; otherwise, a continuous color scale.
if (require(ggplot2)) {
data <- data.frame(c = LETTERS[1:3],x = c(1,5,7),y = c(5,9,13))
ggplot(data, aes(x,y,color = c))+geom_point()+scale_color_gogh()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.