pubpng | R Documentation |
Output ggplot object to PNG files with good quality settings.
pubpng(file, plot, width = 1600, height = 1400, res = 200)
file |
Output file path and name. |
plot |
ggplot object or command. |
width |
Width of plot, in pixels. Defaults to 1600. |
height |
Height of plot, in pixels. Defaults to 1400. |
res |
Resolution, in ppi. Deagults to 200. |
TRUE if succesful, while file is saved to disk.
grDevices::png
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.