theme_center | R Documentation |
#theme_center Based on theme_minimal title, subtitle are centered
theme_center(
base_size = 11,
strip_text_size = 12,
strip_text_margin = 5,
subtitle_size = 13,
subtitle_margin = 10,
plot_title_size = 16,
plot_title_margin = 10,
strip_color = "gray90",
...
)
base_size |
x |
strip_text_size |
x |
strip_text_margin |
x |
subtitle_size |
x |
subtitle_margin |
x |
plot_title_size |
x |
plot_title_margin |
x |
strip_color |
facet-strip color |
... |
x |
theme
library(ggplot2)
data(faithful)
faithful %>%
ggplot(aes(eruptions)) +
geom_histogram() +
scale_x_continuous(labels = komma()) +
theme_center() +
labs(title = "This is a title", subtitle = "This is a subtitle")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.