theme_publication | R Documentation |
theme_publication
creates a custom ggplot2 theme designed for academic publications, ensuring clarity, readability, and a professional appearance.
It is based on theme_classic()
and includes additional refinements to axis lines, text, and other plot elements to meet the standards of high-quality academic figures.
theme_publication(base_size = 12, base_family = "sans")
base_size |
numeric, the base font size. Default is 12. |
base_family |
character, the base font family. Default is "sans". |
A ggplot2 theme object that can be applied to ggplot2 plots.
ggplot2 theme.
library(ggplot2)
p <- ggplot(mtcars, aes(mpg, wt)) +
geom_point() +
theme_publication()
print(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.