ggpreview {ggimage} | R Documentation |
ggpreview
Description
preview a plot befor saving it to a file.
Usage
ggpreview(
filename = NULL,
plot = last_plot(),
width = NA,
height = NA,
units = "in",
...
)
Arguments
filename |
If it is not NULL, the previewed figure will be save to the file |
plot |
any plot that supported by the 'ggplotify' package |
width |
width of the figure |
height |
height of the figure |
units |
units of the 'width' and 'height' |
... |
additional parameters pass to ggsave() if filename is not NULL |
Value
a preview of the figure
Author(s)
Guangchuang Yu
[Package ggimage version 0.3.3 Index]