View source: R/ggplot-themes.R
theme_ms | R Documentation |
Basic plot theme for manuscript
theme_ms(
base_size = 12,
text_size_strip = 16,
text_size_axis_text = 12,
text_size_axis_title = 18,
text_size_title = 20,
text_size_subtitle = 16,
text_size_legend = 16,
text_size_legend_title = 18,
text_size_caption = 14,
font_family = "",
legend_position = "bottom",
panel_spacing_lines = 2,
margin_t = 6,
margin_r = 6,
margin_b = 6,
margin_l = 6,
...
)
base_size |
base font size |
text_size_strip |
size of text that goes over facets |
text_size_axis_text |
size of axis tick text |
text_size_axis_title |
size of axis label/title text |
text_size_title |
size of plot title text |
text_size_subtitle |
size of plot subtitle text |
text_size_legend |
size of legend text |
text_size_legend_title |
size of legend title text |
text_size_caption |
size of plot caption text |
font_family |
font to use in plot text, defaults to ggplot's base font |
legend_position |
where the legend should go, bottom by default. accepts any argument allowed by ggplot2. |
panel_spacing_lines |
Amount of space in line units between faceted panels. |
margin_t |
Margin space above top of plot. |
margin_r |
Margin space to the right of plot. |
margin_b |
Margin space underneath the of plot. |
margin_l |
Margin space to the left of plot. |
... |
Other arguments passed to |
## Not run:
library(ggplot2)
ggplot(iris, aes(Sepal.Length, Petal.Length)) +
geom_point() +
theme_ms()
## End(Not run)
## Not run:
ggplot2::theme_set(zlib::theme_ms())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.