Package 'tayloRswift'

Title: Color Palettes Generated by Taylor Swift Albums
Description: For when your colors absolutely should not be excluded from the narrative.
Authors: Alex Stephenson [aut, cre]
Maintainer: Alex Stephenson <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2025-02-05 06:29:26 UTC
Source: https://github.com/cran/tayloRswift

Help Index


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.