wpsave | R Documentation |
Wraps ggsave()
, but saves plot as both .pdf
and .png
, then loads plot to viewer.
wpsave(path, height, width, dpi = 300)
path |
Path at which to save file. Note that if file extension is specified, it will be stripped. |
height |
Height in inches. |
width |
Width in inches. |
dpi |
Dots per inch, used for |
# not run; all three will produce same output
# wpsave("output/figure1", height = 4, width = 4)
# wpsave("output/figure1", height = 4, width = 4, dpi = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.