ggpreview: Preview a file that would be created by 'ggsave()'

View source: R/ggplot.R

ggpreviewR Documentation

Preview a file that would be created by ggsave()

Description

This function saves a plot to a temporary file with ggsave() and opens the temporary file in the system viewer. This function is useful for quickly previewing how a plot will look when it is saved to a file.

Usage

ggpreview(..., device = "png")

Arguments

...

options passed onto ggplot2::ggsave()

device

the file extention of the device to use. Defaults to "png".


tjmahr/tjmisc documentation built on Feb. 8, 2023, 12:21 p.m.