theme_center: Title

View source: R/tidyverse.R

theme_centerR Documentation

Title

Description

#theme_center Based on theme_minimal title, subtitle are centered

Usage

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",
  ...
)

Arguments

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

Value

theme

Examples

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")

pedersebastian/pederlib documentation built on June 17, 2024, 2:37 p.m.