Description Usage Arguments Details Value Author(s)
Use the ImageMagick command line to convert the PDF saved by ggplot2 to PNG format with a transparent background and to set the resolution.
1 2 3 |
x |
A file name that does not have a suffix. |
dpi |
The default dpi is 600. You can enhance the dpi value to produce a higher resolution PNG file. |
... |
see :ggsave |
p |
ggplot2 object |
You need to install ImageMagick! Please check if the ImageMagick is added to the environment variable.
this ggplot2 object will automatically add a theme with a transparent background.
You will get a PNG file with the result drawn by ggplot2.
Chai
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.