Best device for SVG graphics in R? [closed]

2019-04-24 00:02发布

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,

标签: r svg
2条回答
放荡不羁爱自由
2楼-- · 2019-04-24 00:23

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.

查看更多
Lonely孤独者°
3楼-- · 2019-04-24 00:25

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.

查看更多
登录 后发表回答