Add an (SVG-) image to an existing graph in R
Asked Answered
B

2

6

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?

Birthstone answered 22/2, 2013 at 7:58 Comment(0)
P
3

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.

Papa answered 22/2, 2013 at 8:19 Comment(0)
C
2

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.

Czerny answered 22/2, 2013 at 9:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.