I'd like to an an image (ideally an SVG) as an inset to an existing graph in R and put a black border around the image.
Is that possible with base-functions in R? Do I need packages for that?
I'd like to an an image (ideally an SVG) as an inset to an existing graph in R and put a black border around the image.
Is that possible with base-functions in R? Do I need packages for that?
Maybe the grImport
package is what you are looking for ? It only seems to allow to import Posctscript files, however.
You can find two vignettes files on the package web page, which should help you learn how to use it.
Convert your SVG to PostScript, then you can do all this good stuff:
http://www.stat.auckland.ac.nz/~paul/Talks/import.pdf
If there's an easier way to convert from SVG to the RGML format mentioned there, that would be a better option.
© 2022 - 2024 — McMap. All rights reserved.