scale_color_taylor: Color scale for Taylor Swift colors

Description Usage Arguments Value Examples

View source: R/colors.R

Description

Color scale for Taylor Swift colors

Usage

1
2
3
4
5
6
scale_color_taylor(
  palette = "taylor1989",
  discrete = TRUE,
  reverse = FALSE,
  ...
)

Arguments

palette

Character name of palette in swift_palettes

discrete

Boolean if color aesthetic is discrete

reverse

Boolean indicating whether palette should be reversed

...

Additional arguments used to discrete_scale() or scale_fill_gradientn() to automatically interpolate between colours.

Value

No return value. Called for side effects

Examples

1
2
3
library(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_taylor()

tayloRswift documentation built on Nov. 16, 2021, 1:06 a.m.