Type: Package
Title: Color Palettes Generated by Taylor Swift Albums
Version: 0.1.0
Description: For when your colors absolutely should not be excluded from the narrative.
License: MIT + file LICENSE
Encoding: UTF-8
RoxygenNote: 7.1.2
Suggests: ggplot2, knitr, rmarkdown
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2021-11-13 18:49:46 UTC; alexstephenson
Author: Alex Stephenson [aut, cre]
Maintainer: Alex Stephenson <alexander_stephenson@berkeley.edu>
Repository: CRAN
Date/Publication: 2021-11-15 19:10:02 UTC

Color scale for Taylor Swift colors

Description

Color scale for Taylor Swift colors

Usage

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

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

Fill scale for Taylor Swift colors

Description

Fill scale for Taylor Swift colors

Usage

scale_fill_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 if 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

library(ggplot2)
data <- data.frame(c = LETTERS[1:3],x = c(1,5,7),y = c(5,9,13))
ggplot(data, aes(x,fill=c))+geom_bar()+scale_fill_taylor()

Function to interpolate a color palette

Description

Function to interpolate a color palette

Usage

swift_pal(palette = "taylor1989", reverse = FALSE, ...)

Arguments

palette

Character name of palette in tswift_palettes

reverse

Boolean true if palette should be reversed

...

Additional arguments to pass to colorRampPalette()

Value

A vector of colors


Color palettes

Description

Color palettes

Usage

swift_palettes

Format

An object of class list of length 11.