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 |
Color scale for Taylor Swift colors
scale_color_taylor( palette = "taylor1989", discrete = TRUE, reverse = FALSE, ... )
scale_color_taylor( palette = "taylor1989", discrete = TRUE, reverse = FALSE, ... )
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. |
No return value. Called for side effects
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()
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
scale_fill_taylor( palette = "taylor1989", discrete = TRUE, reverse = FALSE, ... )
scale_fill_taylor( palette = "taylor1989", discrete = TRUE, reverse = FALSE, ... )
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. |
No return value. Called for side effects
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()
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
swift_pal(palette = "taylor1989", reverse = FALSE, ...)
swift_pal(palette = "taylor1989", reverse = FALSE, ...)
palette |
Character name of palette in tswift_palettes |
reverse |
Boolean true if palette should be reversed |
... |
Additional arguments to pass to colorRampPalette() |
A vector of colors
Color palettes
swift_palettes
swift_palettes
An object of class list
of length 11.