View source: R/theme_publish.R
theme_publish | R Documentation |
Themes set the general aspect of the plot such as the color of the
background, grid lines, the size and color of fonts. This particular theme is
based on the classic dark-on-light ggplot2 theme_bw
and has been used for scientific publications.
theme_publish(base_size = 12, base_family = "", base_linewidth = 0.25, ...)
base_size |
base font size |
base_family |
base font family |
base_linewidth |
base line width for ticks and axes |
... |
further arguments to be passed to |
Zacharias Steinmetz
ggtheme
theme_bw
library(ggplot2)
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
colour = factor(gear))) + facet_wrap( ~ am)
p
p + theme_publish()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.