preview a plot befor saving it to a file.
ggpreview(
filename = NULL,
plot = last_plot(),
width = NA,
height = NA,
units = "in",
...
)a preview of the figure
If it is not NULL, the previewed figure will be save to the file
any plot that supported by the 'ggplotify' package
width of the figure
height of the figure
units of the 'width' and 'height'
additional parameters pass to ggsave() if filename is not NULL
Guangchuang Yu