View source: R/theme_phontrast.R
| theme_phontrast | R Documentation |
A minimal, publication-oriented ggplot2 theme: quiet major grid, no minor grid, bold plot-aligned title, muted subtitle, left-aligned caption for estimator provenance, and a top-aligned legend. Applied by default in all phontrast plotting functions.
theme_phontrast(base_size = 12, base_family = "")
base_size |
Base font size in points. |
base_family |
Base font family. |
A ggplot2 theme object.
if (requireNamespace("ggplot2", quietly = TRUE)) {
ggplot2::ggplot(iris, ggplot2::aes(Sepal.Length, Sepal.Width)) +
ggplot2::geom_point() +
theme_phontrast()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.