[R] Cross-platforms solution to export R graphs

Philippe Grosjean phgrosjean at sciviews.org
Sat Apr 11 23:09:27 CEST 2009


Liviu Andronic wrote:
> On Sat, Apr 11, 2009 at 3:20 PM, Philippe Grosjean
> <phgrosjean at sciviews.org> wrote:
>> format (PDF) to another one (SVG). In Inkscape, you use File -> Open... for
>> the first step, and File -> Save as... for the second. Since it is a vector
>> format, your graph should not look pixelised.
>>
> Yes, this is what I'm doing, but I still get funny results.
> I have a PDF graph [1] that renders perfectly on my Linux system (say,
> using Evince), and the SVG counterpart [2] (converted via Inkscape)
> that appears with blurry lines at normal zoom level. But I just tried
> couple of R SVGs in Opera at high zoom-ins (350%), and they render as
> expected; guess I could only blame my image viewers.

It looks nice at all resolution with Firefox on my Mac.

> Not exactly cross-platform, but there's also pdf2svg [3] for this type
> of conversion.

Than you for the suggestion.
PhG
> 
> Thanks,
> Liviu
> 
> [1] http://s000.tinyupload.com/index.php?file_id=02313849491005544965
> [2] http://s000.tinyupload.com/index.php?file_id=65971482254693721586
> [3] http://www.cityinthesky.co.uk/pdf2svg.html
> 
>




More information about the R-help mailing list