MyNixOS website logo
Description

TV Show Themes and Color Palettes for 'ggplot2' Graphics.

Contains various 'ggplot2' themes and color palettes based on TV shows such as 'Game of Thrones', 'Brooklyn Nine-Nine', 'Avatar: The Last Airbender', 'Spongebob Squarepants', and more.

tvthemes 1.3.1

Lifecycle:maturing CRAN_Status_Badge Downloads License: GPLv3 Coveragestatus R buildstatus ko-fi

Ryo Nakagawara | Twitter: @R_by_Ryo

The tvthemes package is a collection of various ggplot2 themes and color/fill palettes based on everybody’s favorite TV shows. What kick-started this whole package was my blogpost looking at simple TV stats on my current favorite TV show, Brooklyn Nine-Nine. I got a lot of good feedback on the colors I used for the custom ggplot2 theme and color palettes so I decided to expand it to other shows that I love! Suggestions and Pull Requests for palettes/themes are welcome!

library(tvthemes)
library(ggplot2)
library(extrafont)
loadfonts(quiet = TRUE)

ggplot(mpg, aes(displ)) +
  geom_histogram(aes(fill = class), 
                 col = "black", size = 0.1,
                 binwidth = 0.1) +
  scale_fill_brooklyn99(palette = "Dark") +
  labs(title = "Do you know what it means to 'clap back', Raymond?",
       subtitle = glue::glue("BE- {emo::ji('clap')} -CAUSE {emo::ji('clap')} I {emo::ji('clap')} DO {emo::ji('clap')} !"),
       x = "Titles of Your Sex Tape",
       caption = "Pizza bagels? Pizza rolls? Pizza poppers? Pizzaritos? Pizza pockets?") +
  theme_brooklyn99(title.font = "Titillium Web",
                   text.font = "Calibri Light",
                   subtitle.size = 14)

Current list of TV shows

  • Avatar: The Last Airbender: theme + palettes (Fire Nation, Water Tribe, Earth Kingdom, & Air Nomads)
  • Brooklyn Nine-Nine: theme + palettes (regular & dark)
  • Game of Thrones/A Song of Ice & Fire: ‘The Palettes of Ice & Fire’ (currently: Stark, Baratheon (Stannis), Lannister, Tully, Targaryen, Martell, Greyjoy, Tyrell, Arryn, Manderly)
  • Rick & Morty: theme + palette
  • Parks & Recreation: two themes (light & dark) + palette
  • The Simpsons: theme + palette
  • Spongebob Squarepants: theme + palette + background images
  • Hilda: Day, Dusk, Night themes + palettes
  • Attack on Titan: palette
  • Kim Possible: palette
  • Big Hero 6: palette
  • Gravity Falls: palette
  • Steven Universe: palette
  • More in future releases…
  • Development branch: TBD…

Installation

You can install tvthemes by:

## install.packages(devtools)
## for development version:
devtools::install_github("Ryo-N7/tvthemes")

## v1.3.0 is available on CRAN!
install.packages("tvthemes")

Now available on CRAN!

tvthemes 1.0.0 Major Changes

See vignette.

Fonts & Colors

See vignette.

Examples

You can find the code for all the examples below in the “Examples” Vignette on the Package Website.

Brooklyn Nine-Nine

b99d
b99l

Spongebob Squarepants

bobspog
bobspogbkg

Game of Thrones: House Stark, Tully, Targaryen

StarkTullyTargaryen

Game of Thrones: House Tyrell, Lannister, Greyjoy

TyrellLannisterGreyjoy

Game of Thrones: Arryn, Manderly, Martell

ArrynManderlyMartell

Game of Thrones: Stannis Baratheon, The One True King

stannis

The Simpsons

simpsons

Rick and Morty

randm

Avatar: The Last Airbender (Fire Nation, Air Nomads, Water Tribe, Earth Kingdom)

tla

Parks and Recreation

pandr

Attack on Titan

aot

Kim Possible

KimPossible

Big Hero 6

bighero6

Hilda

hilda

Gravity Falls

gravityfall

Steven Universe

stevenuniverse

Contributing

Please note that the tvthemes project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

This code is released under the GPL v3 License - see the LICENSE.md file for details.

Credits

Inspired by Matt Oldach’s {vaporwave}, Bob Rudis’ {hrbrthemes}, Garrick Aden-Buie’s {ggpomological}, Ewen Henderson’s {ghibli}, rOpenSci’s {ochRe}, & Nathan Cunningham.

Hilda palettes from Matt Shanks and ChevyRay.

“Some Time Later” font courtesy of Frederick Brennan.

Metadata

Version

1.3.3

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows