Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best device for SVG graphics in R? [closed]

Tags:

r

svg

I'd like to export SVG graphics from R. There appear to be two alternatives: RSvgDevice and Cairo. Can anyone comment on these packages? Is either the default, or clearly better than the other?

Many thanks,

like image 634
Ben M Avatar asked Aug 18 '10 18:08

Ben M


2 Answers

I can't comment definitively other than to say that I use Cairo all the time to create high-quality images, and have had great experience with it. It can target many different output formats beyond SVG.

like image 179
Shane Avatar answered Nov 04 '22 17:11

Shane


As far as I know, there are other packages you could try: gridSVG, SVGAnnotation and RSVGTipsDevice. You will find lots of examples and different discussions of these approaches in some slides by Paul Murrel (author of gridSVG) and in a paper by the authors of SVGAnnotation.

like image 41
Oscar Perpiñán Avatar answered Nov 04 '22 18:11

Oscar Perpiñán