Skip to content

For when your colors absolutely should not be excluded from the narrative.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

asteves/tayloRswift

Repository files navigation

tayloRswift

R-CMD-check Codecov test coverage

A ggplot2 color palette based on Taylor Swift Album Covers.

The package includes palettes for every full album except for those that Taylor Swift has disavowed.

Installation

You can install the CRAN version of tayloRswift with:

install.packages(c("tayloRswift"))

Alternatively, you can install the development version with:

remotes::install_github("asteves/tayloRswift")

and load it with

library(tayloRswift)

Examples

Color by discrete variable using default palette based on 1989

ggplot(penguins, aes(bill_depth_mm, bill_length_mm, color = species)) +
  geom_point(size = 4) +
  scale_color_taylor()+
  theme_minimal()

Choose a different palette

Reputation works great as a grayscale.

ggplot(penguins, aes(bill_depth_mm, bill_length_mm, color = species)) +
  geom_point(size = 4) +
  scale_color_taylor(palette = "reputation")+
  theme_minimal()

Color by numeric variable

Be content with a palette based on Fearless

ggplot(penguins , aes(bill_depth_mm, bill_length_mm,color = bill_length_mm)) +
  geom_point(size = 4) +
  scale_color_taylor(discrete = FALSE, palette ="fearless")+
  theme_minimal()

Fill by discrete variable

Pop with color from Lover

ggplot(mpg, aes(manufacturer, fill = manufacturer)) +
  geom_bar() +
  theme_minimal()+
  theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
  scale_fill_taylor(palette = "lover", guide = "none")

Or if you prefer modern Swift, Folklore

ggplot(penguins, aes(species, fill = species)) +
  geom_bar() +
  theme_minimal()+
  theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
  scale_fill_taylor(palette = "folklore", guide = "none")

Palettes

taylorSwift

taylorSwift= “#61b6cc”, “#577f3f”, “#e3e9f3”, “#0a1605”, “#fddac7”, “#81a757”

fearless

fearless = "#DCBE83", "#88642C", "#EDE7D9", "#EFD998", "#49260A", "#EFB391"

fearlessTV

fearlessTV = “#b68f51”, “#5b3617”, “#f7eabe”, “#ecd59f”, “#825c2d”

speakNow

speakNow = “#ffffff”, “#4b2671”, “#5e291c”, “#f3d8c4”, “#f3bf73”

speakNowLive

speakNowLive = “#fce178”, “#969696”, “#871d20”, “#090708”, “#fafaf9”

speakNowTV

speakNowTV = "#351E2E","#481E52","#AE6D4F","#884885","#C44D56","#A0659F"

Red

Red = #B11E4A", "#A14053", "#8E7F6C", "#1B1C38", "EBEDDF", "9D8B6D")

taylorRed

taylorRed = “#b1532a”,“#84697f”,“#cbb593”,“#a88f92”,“#e8eadf”,“#43475b”

taylor1989

taylor1989 = “#b1532a”, “#84697f”, “#cbb593”, “#a88f92”, “#e8eadf”, “#43475b”

TS1989

TS1989 = "#D9523F", "#D1CFC2", "#ACBCCC","#588383","#AA6F4E","#8898A1"

In addition, the package comes with palettes for alternate album covers as well.

SunriseBoulevard1989 = "#2B3849","#6C1414","#C8AA86","#D0C9B9","#888D50","#313C40"

AquamarineGreen1989 = "#101C18", "#C19298", "#5B96A5","#90A5A8","#9A241F","#938C7C"

RoseGardenPink1989 = "#8A9DAC", "#9E948A","#DD8253","#B4AEAF","#B6723C","#7F8491"

reputation

reputation = “#060606”, “#6e6e6e”, “#fefefe”, “#cacaca”, “#060606”, “#8c8c8c”

lover

lover = “#b8396b”, “#ffd1d7”, “#fff5cc”, “#76bae0”, “#b28f81”, “#54483e”

folklore

folklore= “#272727”, “#5c5c5c”, “#bababa”, “#f8f8f8”

evermore

evermore = “#3d2620”, “#efefef”, “#827d73”, “#efefef”, “#3d2620”

midnights

midnights = “#586891”,“#8897A4”,“#B3A6A3”,“#2B152C”,“#F1F3F2”

In addition, the package comes with palettes for alternate album covers as well.

midnightsBloodMoon = “#651D32”, “#80433F”, “#BC7B55”, “#AD9291”, “#E9E8E4”

midnightsJadeGreen = “#E8E7E3”, “#CE986B”, “#2F3C30”, “#0B0B08”, “#B98645”, “#8D8C7A”

midnightsMahogany = “#AE9975”, “#2B181F”, “#E2E1DD”, “#948266”, “#AD8E49”

TSTTPD

TSTTPD = "#8D8171", "#C6C0B8", "#49433B", "#FDFDFD", "#322B25","#ADA69C"

Related Packages

For those who work in Python, it was brought to my attention that there is a very cool package by Josh Borrow called swiftacsmaps.

Other inspirations for this package are the tutorial on creating corporate color palettes by Dr. Simon Jackson, which I drew on heavily. I have long used the wesanderson package by Karthik Ram, which does a similar task.

About

For when your colors absolutely should not be excluded from the narrative.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages