tr_theme | R Documentation |
Custom theme that can be applied to ggplot2 plots. Increases base font size, sets a white background, grey grid, and black border.
tr_theme(base_size = 18, base_family = "", grid = TRUE)
base_size |
Base font size applied to all text in the plot (default 18) |
base_family |
Base font type applies to all text in the plot |
grid |
Determines if grid lines should be drawn. Defaults to
|
A ggplot2 theme
None.
https://www.github.com/travis-m-blimkie/tRavis
if (FALSE)
ggplot(mtcars, aes(cyl, mpg)) + geom_point() + tr_theme()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.