View source: R/plotting_misc.R
trimImage | R Documentation |
This function takes a filename for an image, which will then be processed using the trim command in imagemagick to remove the surrounding whitespace
trimImage(file.name, debug = F)
debug |
Optional: Print out imagemagick convert command |
file.name: |
The location of the file |
## Not run: file.name = 'test.png'; svg(file.name) plot(1:10) graphics.off() trimImage(file.name) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.