theme_base | R Documentation |
Creates a custom theme based on theme_minimal with specific text sizes and no legend by default
theme_base
base_size |
Base font size, default is 12 |
legend_position |
Position of the legend ("none", "left", "right", "bottom", "top"), default is "none" |
An object of class theme
(inherits from gg
) of length 136.
A ggplot2 theme object
## Not run:
library(ggplot2)
# Basic usage
ggplot(mtcars, aes(wt, mpg)) +
geom_point() +
theme_my()
# With legend
ggplot(mtcars, aes(wt, mpg, color =factor(cyl))) +
geom_point() +
theme_my(legend_position ="right")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.