将插图中的绘图绘制为"q"

use*_*593 10 r adobe-illustrator inkscape lattice

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

在此输入图像描述

use*_*1_G 15

我想你可能想用:

 useDingbats = FALSE 
Run Code Online (Sandbox Code Playgroud)

如:

pdf("myplot.pdf", useDingbats=FALSE)
plot()
dev.off()
Run Code Online (Sandbox Code Playgroud)


Rei*_*son 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’.
Run Code Online (Sandbox Code Playgroud)

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