Why doesn't Inkscape correctly read PDF files generated by R?

后端 未结 1 1419
陌清茗
陌清茗 2020-12-19 08:49

Very often, I draw graphs in R and export them in pdf or svg. Then I import them in Inkskape or Illustrator. Sometimes this generates weird results. For instance, when I gen

相关标签:
1条回答
  • 2020-12-19 09:34

    This is a symptom of different fonts being used as the plotting symbols. Try creating the PDF file using:

       pdf("test.pdf", useDingbats = F) 
       plot(1:10, 10:1, pch=16 )
       dev.off()
    

    Screenshot from Inkscape Screenshot from Inkscape

    There is a long "Note" in ?pdf about why the authors of R think some pdf viewers (apparently Inkscape being one such) are failing and some configuration suggestions which I have not tested on my Mac.

    0 讨论(0)
提交回复
热议问题