Best device for SVG graphics in R? [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
开发者_运维百科 Improve this questionI'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,
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.
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.
精彩评论