Skip to contents

Sets the panel.widths element of the active theme via ggplot2::theme_update().

Usage

update_panel_widths(widths)

Arguments

widths

A grid::unit() specifying the panel widths (e.g., grid::unit(8, "cm")). Use NULL to remove a previously set width.

Value

The previous theme, invisibly (see ggplot2::theme_update()).

Examples

if (FALSE) { # \dontrun{
update_panel_widths(grid::unit(8, "cm"))
} # }