Elf Inspired Color Scales
Usage
scale_color_elf_c(...)
scale_fill_elf_c(...)
scale_color_elf_b(...)
scale_fill_elf_b(...)
scale_color_elf_d(...)
scale_fill_elf_d(...)
scale_colour_elf_d(...)
scale_colour_elf_c(...)
scale_colour_elf_b(...)
Arguments
- ...
Additional arguments to pass to
ggplot2::binned_scale
for_b
,ggplot2::scale_[fill/color]_gradient
for_c
, orggplot2::discrete_scale
for_d
Examples
library(ggplot2)
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") +
facet_wrap(~(hwy > 29)) +
theme_elf() +
scale_fill_elf_d()