Rafael Björk
2010-Nov-04 14:04 UTC
[R] Problems with points in plots when importing from pdf to an SVG editor
Dear R-users When trying to import graphics from an pdf-file to a Vector graphics editor (I use Inkscape, but i've confirmed the same problem on adobe products), all points in the graphics turn out as "q"s. This example displays the beaviour: pdf(file="points are weird.pdf") plot(1:5) dev.off() When importing the file to inkscape, I get five neatly arranged little "q"s. The obvious workaround would be to change the points into another plotting character, but this isn't the first time i've encountered this behaviour, and it would be nice to solve it properly instead. I realize this might not strictly be a question related to R, but if someone who've encountered the problem has found a solution or workaround it would be greatly appreciated. Kind regards/ Rafael [[alternative HTML version deleted]]
Ivan Calandra
2010-Nov-04 14:18 UTC
[R] Problems with points in plots when importing from pdf to an SVG editor
Hi, Try with RSvgDevice::devSVG() I don't have any problems with either Inkscape or Illustrator (CS4) HTH, Ivan Le 11/4/2010 15:04, Rafael Bj?rk a ?crit :> Dear R-users > > When trying to import graphics from an pdf-file to a Vector graphics editor > (I use Inkscape, but i've confirmed the same problem on adobe products), all > points in the graphics turn out as "q"s. > This example displays the beaviour: > > pdf(file="points are weird.pdf") > plot(1:5) > dev.off() > > When importing the file to inkscape, I get five neatly arranged little "q"s. > The obvious workaround would be to change the points into another plotting > character, but this isn't the first time i've encountered this behaviour, > and it would be nice to solve it properly instead. > I realize this might not strictly be a question related to R, but if someone > who've encountered the problem has found a solution or workaround it would > be greatly appreciated. > > Kind regards/ > Rafael > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Ivan CALANDRA PhD Student University of Hamburg Biozentrum Grindel und Zoologisches Museum Abt. S?ugetiere Martin-Luther-King-Platz 3 D-20146 Hamburg, GERMANY +49(0)40 42838 6231 ivan.calandra at uni-hamburg.de ********** http://www.for771.uni-bonn.de http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php
Erik Iverson
2010-Nov-04 15:02 UTC
[R] Problems with points in plots when importing from pdf to an SVG editor
Just read the help page :). This is under "Note" in the ?pdf. On some systems the default plotting character ?pch = 1? is displayed in some PDF viewers incorrectly as a ?"q"? character. (These seem to be viewers based on the ?poppler? PDF rendering library). This may be due to incorrect or incomplete mapping of font names to those used by the system. Adding the following lines to ?~/.fonts.conf? or ?/etc/fonts/local.conf? may circumvent this problem. <alias binding="same"> <family>ZapfDingbats</family> <accept><family>Dingbats</family></accept> </alias> I've found that in my case, this happens when viewing a PDF with that plotting character under old versions of Evince, but not newer. --Erik Rafael Bj?rk wrote:> Dear R-users > > When trying to import graphics from an pdf-file to a Vector graphics editor > (I use Inkscape, but i've confirmed the same problem on adobe products), all > points in the graphics turn out as "q"s. > This example displays the beaviour: > > pdf(file="points are weird.pdf") > plot(1:5) > dev.off() > > When importing the file to inkscape, I get five neatly arranged little "q"s. > The obvious workaround would be to change the points into another plotting > character, but this isn't the first time i've encountered this behaviour, > and it would be nice to solve it properly instead. > I realize this might not strictly be a question related to R, but if someone > who've encountered the problem has found a solution or workaround it would > be greatly appreciated. > > Kind regards/ > Rafael > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.