View source: R/plotting_misc.R
convertSVGtoTarget | R Documentation |
This function takes in an svg file name and converts that image to a different format using imagemagick. 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
convertSVGtoTarget(svg.file.name, im.width = 1000, target = "jpg", debug = F)
im.width |
Optional: Specifies the output width of the output file, defaults to 1000 |
target |
Optional: The extension of the output file, defaults to .jpg |
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() convertSVGtoTarget(svg.file,target="jpg") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.