
Custom ggplot2 theme compliant with ASN's brand identity.
Source: R/asn_ggplot2_themes.R
theme_asn.RdCustom ggplot2 theme compliant with ASN's brand identity.
Value
An ASN brand identity-compliant ggplot2 theme, built off of theme_minimal().
Examples
library(ggplot2)
ggplot(
iris,
aes(
x = Sepal.Length,
y = Sepal.Width,
color = Species
)
) +
geom_point() +
geom_smooth(
method = "lm"
) +
labs(
x = "Length",
y = "Width",
title = "Relationship Between Iris Length and Width",
subtitle = "<i>Setosa</i>, <i>Versicolor</i>, & <i>Virginica</i> are positive"
) +
facet_wrap(~ Species) +
theme_asn(
title_font = "serif",
base_font = "sans"
)
#> `geom_smooth()` using formula = 'y ~ x'