Harry Potter Inspired Color Scales
Usage
scale_fill_gryffindor(...)
scale_color_gryffindor(...)
scale_fill_ravenclaw(...)
scale_color_ravenclaw(...)
scale_fill_hufflepuff(...)
scale_color_hufflepuff(...)
scale_fill_slytherin(...)
scale_color_slytherin(...)
Arguments
- ...
Additional arguments to pass to ggplot2::scale_[fill/color]_gradient()
Value
a ggplot
scale object
Examples
library(ggplot2)
ggplot(mpg) +
geom_point(aes(y = class, x = hwy, color = cyl)) +
labs(title="MPG by Vehicle Type",
caption="Source: mpg",
x = "City Mileage",
color ="# Cylinders") +
scale_color_gryffindor()