theme_beamer | R Documentation |
Creates a minimal theme optimized for Beamer presentations with scaled text sizes and minimal space between panels
theme_beamer(scale = 1)
scale |
Numeric scaling factor for text sizes, default is 1 |
The theme is based on theme_minimal with:
Base text size of 18 (scaled)
Axis and strip text size of 16 (scaled)
Legend at bottom
Minimal panel spacing
Light gray panel borders
A ggplot2 theme object
## Not run:
library(ggplot2)
# Basic usage
ggplot(mtcars, aes(wt, mpg)) +
geom_point() +
theme_beamer()
# With larger text
ggplot(mtcars, aes(wt, mpg)) +
geom_point() +
theme_beamer(scale =1.2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.