Awesome
<!-- README.md is generated from README.Rmd. Please edit that file -->tvthemes 1.3.1 <img src="man/figures/logo.png" align="right" style="padding-left:10px;background-color:white;" />
<!-- badges: start --> <!-- badges: end -->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!
- Package Website
- Intro to
tvthemes 0.0.0.9100
blog post tvthemes 1.0.0
& CRAN release blog posttvthemes 1.1.0
& CRAN release blog posttvthemes 1.3.0
& CRAN release blog post
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
<figure> <img src="man/figures/README-b99header-1.png" alt="b99d" /> <figcaption aria-hidden="true">b99d</figcaption> </figure> <figure> <img src="man/figures/b99regpal_plot.png" alt="b99l" /> <figcaption aria-hidden="true">b99l</figcaption> </figure>Spongebob Squarepants
<figure> <img src="man/figures/sponge_plot.png" alt="bobspog" /> <figcaption aria-hidden="true">bobspog</figcaption> </figure> <figure> <img src="man/figures/bobspog.bg.png" alt="bobspogbkg" /> <figcaption aria-hidden="true">bobspogbkg</figcaption> </figure>Game of Thrones: House Stark, Tully, Targaryen
<figure> <img src="man/figures/starktullytargaryen.png" alt="StarkTullyTargaryen" /> <figcaption aria-hidden="true">StarkTullyTargaryen</figcaption> </figure>Game of Thrones: House Tyrell, Lannister, Greyjoy
<figure> <img src="man/figures/tyrelllannistergreyjoy.png" alt="TyrellLannisterGreyjoy" /> <figcaption aria-hidden="true">TyrellLannisterGreyjoy</figcaption> </figure>Game of Thrones: Arryn, Manderly, Martell
<figure> <img src="man/figures/arrynmanderlymartell.png" alt="ArrynManderlyMartell" /> <figcaption aria-hidden="true">ArrynManderlyMartell</figcaption> </figure>Game of Thrones: Stannis Baratheon, The One True King
<figure> <img src="man/figures/stannis.png" alt="stannis" /> <figcaption aria-hidden="true">stannis</figcaption> </figure>The Simpsons
<figure> <img src="man/figures/simpsons_plot.png" alt="simpsons" /> <figcaption aria-hidden="true">simpsons</figcaption> </figure>Rick and Morty
<figure> <img src="man/figures/rickmorty_plot.png" alt="randm" /> <figcaption aria-hidden="true">randm</figcaption> </figure>Avatar: The Last Airbender (Fire Nation, Air Nomads, Water Tribe, Earth Kingdom)
<figure> <img src="man/figures/lastairbender.png" alt="tla" /> <figcaption aria-hidden="true">tla</figcaption> </figure>Parks and Recreation
<figure> <img src="man/figures/parksandrec_both.png" alt="pandr" /> <figcaption aria-hidden="true">pandr</figcaption> </figure>Attack on Titan
<figure> <img src="man/figures/attackontitan.png" alt="aot" /> <figcaption aria-hidden="true">aot</figcaption> </figure>Kim Possible
<figure> <img src="man/figures/kimpossible.png" alt="KimPossible" /> <figcaption aria-hidden="true">KimPossible</figcaption> </figure>Big Hero 6
<figure> <img src="man/figures/bighero6.png" alt="bighero6" /> <figcaption aria-hidden="true">bighero6</figcaption> </figure>Hilda
<figure> <img src="man/figures/hilda.png" alt="hilda" /> <figcaption aria-hidden="true">hilda</figcaption> </figure>Gravity Falls
<figure> <img src="man/figures/gravityfalls.png" alt="gravityfall" /> <figcaption aria-hidden="true">gravityfall</figcaption> </figure>Steven Universe
<figure> <img src="man/figures/stevenuniverse.png" alt="stevenuniverse" /> <figcaption aria-hidden="true">stevenuniverse</figcaption> </figure>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.