Preview the effects of ggplot2-themes on a given plot

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