themePub | R Documentation |
A sensible theme for basic ggplot output for use in LaTeX articles
themePub(
base_size = 12,
base_family = "serif",
base_line_size = base_size/22,
base_rect_size = base_line_size,
...
)
base_size |
base font size, given in pts |
base_family |
base font family |
base_line_size |
base size for line elements |
base_rect_size |
base size for rect elements |
... |
further arguments passed to |
data(mtcars)
library(ggplot2)
ggplot(mtcars, aes(x = mpg, y = wt)) +
geom_point() +
themePub()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.