DUNE Inspired Theme
Arguments
- dune_font
should
theme_dune
use https://www.dafont.com/dune-rise.font? Default isTRUE
.- ...
additional parameters to pass to
ggplot2::theme()
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 = dune_theme_colors["dark"],
fill = dune_theme_colors["light"]) +
geom_point(color = dune_theme_colors["medium"]) +
labs(title = 'DUNE Scatter Plot') +
theme_dune()
#> `geom_smooth()` using formula = 'y ~ x'
ggplot(mpg, aes(cty)) +
geom_density(aes(fill=factor(cyl)), alpha=0.8) +
labs(title="Density plot",
subtitle="Mileage Grouped by cylinders",
caption="Source: mpg",
x="City Mileage",
fill="# Cylinders") +
theme_dune()+
scale_fill_dune_discrete()