scale_color_gogh {ggRtsy} | R Documentation |
Creating the color scale for Van Gogh Colors
Description
Creating the color scale for Van Gogh Colors
Usage
scale_color_gogh(
palette = "starryNight",
discrete = TRUE,
reverse = FALSE,
...
)
Arguments
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()] |
Value
A ggplot2 color scale. If 'discrete' is TRUE, it returns a discrete color scale; otherwise, a continuous color scale.
Examples
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()
}
[Package ggRtsy version 0.1.0 Index]