View source: R/plotting_misc.R
convertSVGtoPNG | R Documentation |
This function takes in an svg file name and converts that image to a png. This function assumes that imagemagick has been installed and that "convert" is available at the command line. This function also assumes that the svg file has the string '.svg' present at the end of the of the svg file
convertSVGtoPNG(svg.file.name, im.width = 1000, debug = F)
im.width |
Optional: Specifies the output width of the png file, defaults to 1000 |
debug |
Optional: Print out imagemagick convert command |
svg.file.name: |
The location of the svg file |
## Not run: svg.file = 'test.svg'; svg(svg.file) plot(1:10) graphics.off() convertSVGtoPNG(svg.file) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.