powered by
The default cowplot theme, with a simple half-open frame and no grid. This theme used to be set by default after loading the cowplot package, but this is no longer the case.
theme_cowplot( font_size = 14, font_family = "", line_size = 0.5, rel_small = 12/14, rel_tiny = 11/14, rel_large = 16/14 )theme_half_open( font_size = 14, font_family = "", line_size = 0.5, rel_small = 12/14, rel_tiny = 11/14, rel_large = 16/14 )
theme_half_open( font_size = 14, font_family = "", line_size = 0.5, rel_small = 12/14, rel_tiny = 11/14, rel_large = 16/14 )
The theme.
Overall font size.
Font family for plot title, axis titles and labels, legend texts, etc.
Line size for axis lines.
Relative size of small text (e.g., axis tick labels)
Relative size of tiny text (e.g., caption)
Relative size of large text (e.g., title)
Both theme_cowplot() and theme_half_open() provide exactly the same styling.
theme_cowplot()
theme_half_open()
library(ggplot2) ggplot(mtcars, aes(disp, mpg)) + geom_point() + theme_cowplot(font_size = 12)
Run the code above in your browser using DataLab