preview_themes: Preview the Effects of Themes on a Plot

View source: R/demo.R

preview_themesR Documentation

Preview the Effects of Themes on a Plot

Description

Preview the effects of ggplot2-themes on a given plot

Usage

preview_themes(
  x = example_plot(),
  themes = ggplot_themes(),
  to_pdf = TRUE,
  landscape = TRUE,
  ...
)

Arguments

x

ggplot object

themes

list of ggplot-themes as returned by theme

to_pdf

if TRUE (default) the output goes to a PDF file

landscape

if TRUE (default) the output to a PDF file will be in DIN A4 landscape format, else in DIN A4 portrait format

...

arguments passed to grid.arrange


KWB-R/kwb.plot documentation built on Oct. 2, 2023, 10:16 p.m.