Base ggplot2 themes for paper figures and poster figures. All arguments are
passed on to ggplot2::theme()
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | theme_paper(base_size = 10, legend.key.size = ggplot2::unit(0.09,
"in"), legend.title = ggplot2::element_blank(),
axis.title.x = ggplot2::element_blank(),
axis.text.x = ggplot2::element_text(size = 8),
axis.ticks.x = ggplot2::element_blank(),
axis.line.x = ggplot2::element_line(color = "black"),
axis.line.y = ggplot2::element_line(color = "black"),
plot.title = ggplot2::element_text(hjust = 0.5),
strip.background = ggplot2::element_blank(), ...)
theme_paper_nhg(base_size = 10, text = element_text(family =
"NeueHaasGroteskText"), legend.key.size = ggplot2::unit(0.09, "in"),
legend.title = ggplot2::element_blank(),
axis.title.x = ggplot2::element_blank(),
axis.text.x = ggplot2::element_text(size = 8),
axis.ticks.x = ggplot2::element_blank(),
axis.line.x = ggplot2::element_line(color = "black"),
axis.line.y = ggplot2::element_line(color = "black"),
plot.title = ggplot2::element_text(hjust = 0.5),
strip.background = ggplot2::element_blank(), ...)
theme_poster(base_size = 15,
strip.background = ggplot2::element_blank(),
panel.background = ggplot2::element_blank(),
panel.grid.minor = ggplot2::element_line(color = "grey93"),
plot.background = ggplot2::element_rect(fill = "transparent", color =
NA), ...)
|
base_size |
base font size |
legend.key.size |
size of legend keys ( |
legend.title |
title of legend ( |
axis.title.x |
labels of axes ( |
axis.text.x |
tick labels along axes ( |
axis.ticks.x |
tick marks along axes ( |
axis.line.x |
lines along axes ( |
axis.line.y |
lines along axes ( |
plot.title |
plot title (text appearance) ( |
strip.background |
background of facet labels ( |
... |
additional element specifications not part of base ggplot2. If
supplied |
text |
all text elements ( |
panel.background |
background of plotting area, drawn underneath plot
( |
panel.grid.minor |
grid lines ( |
plot.background |
background of the entire plot ( |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.