ggpreview | R Documentation |
preview a plot befor saving it to a file.
ggpreview(
filename = NULL,
plot = last_plot(),
width = NA,
height = NA,
units = "in",
...
)
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 |
a preview of the figure
Guangchuang Yu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.