Learn R Programming

ggRtsy (version 1.2.1)

scale_color_gogh: 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,
  ...
)

Value

A ggplot2 color scale. If `discrete` is TRUE, it returns a discrete color scale; otherwise, a continuous color scale.

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()]

Examples

Run this code
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()
}

Run the code above in your browser using DataLab