Super Nintendo Inspired Color Scales
Usage
scale_color_snes_c(...)
scale_fill_snes_c(...)
scale_color_snes_b(...)
scale_fill_snes_b(...)
scale_color_snes_d(...)
scale_fill_snes_d(...)
scale_colour_snes_d(...)
scale_colour_snes_c(...)
scale_colour_snes_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_snes() +
scale_fill_snes_d()
ggplot(mpg) +
geom_point(aes(x = cty, y = hwy, color = year)) +
labs(title = 'Mileage comparisons',
x = 'City Mileage', y = 'Highway Mileage', color = 'Year') +
theme_snes() +
scale_color_snes_c()