在插画家中将其作为“q”绘图

时间:2013-01-15 21:34:33

标签: r lattice adobe-illustrator inkscape

每次我使用pch = 21在R中用格子绘图时,我的绘图通常在R绘图窗口和pdf(带边框的圆圈)中绘制;但是当我在Adobe Illustrator或Inkscape中打开保存的pdf版本的情节时,这些点奇怪地转换为“q”。有谁能解释一下?这非常令人沮丧,因为我想在Illustrator或Inkscape中编辑我的情节。

enter image description here

2 个答案:

答案 0 :(得分:15)

我想您可能想要使用:

 useDingbats = FALSE 

如:

pdf("myplot.pdf", useDingbats=FALSE)
plot()
dev.off()

答案 1 :(得分:8)

?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.

 <fontconfig>    
 <alias binding="same">
   <family>ZapfDingbats</family>
   <accept><family>Dingbats</family></accept>
 </alias>
 </fontconfig>  

 Some further workarounds for problems with symbol fonts on viewers
 using ‘fontconfig’ are given in the ‘Cairo Fonts’ section of the
 help for ‘X11’.

在我的Linux机器上,fontconfig声明过去(现在仍然)对我有用。我建议你设置或阅读最后一个引用句子中指出的其他页面,看看那些是否能解决你所看到的问题。