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?

Spacedman
  • 92,590
  • 12
  • 140
  • 224
R_User
  • 10,682
  • 25
  • 79
  • 120

2 Answers2

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.

juba
  • 47,631
  • 14
  • 113
  • 118
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.

Spacedman
  • 92,590
  • 12
  • 140
  • 224