Skip to contents

Harry Potter Inspired Themes

Usage

theme_gryffindor(gryffindor_font = TRUE, ...)

theme_ravenclaw(ravenclaw_font = TRUE, ...)

theme_hufflepuff(hufflepuff_font = TRUE, ...)

theme_slytherin(slytherin_font = TRUE, ...)

Arguments

gryffindor_font

should theme_gryffindor use Google Font's Henny Penny? Default is TRUE.

...

additional parameters to pass to ggplot2::theme()

ravenclaw_font

should theme_gryffindor use Google Font's Henny Penny? Default is TRUE.

hufflepuff_font

should theme_gryffindor use Google Font's Henny Penny? Default is TRUE.

slytherin_font

should theme_gryffindor use Google Font's Henny Penny? Default is TRUE.

Value

a ggplot2

theme element

Examples

library(ggplot2)

ggplot(data = data.frame(x = rnorm(50, 0, 1), y = rnorm(50,0,1)), aes(x = x, y = y)) +
  geom_smooth(method = 'lm', color = '#890000') +
  geom_point() +
  labs(title = 'Gryffindor Scatter Plot') +
  theme_gryffindor()
#> `geom_smooth()` using formula = 'y ~ x'


ggplot(mpg, aes(cty)) +
geom_density(aes(fill=factor(cyl)), alpha=0.8) +
  labs(title="Density plot",
       subtitle="City Mileage Grouped by Number of cylinders",
       caption="Source: mpg",
       x="City Mileage",
       fill="# Cylinders") +
  theme_ravenclaw()