R pch plotting in illustator as "q"
每次我使用 pch=21 在 R 中用格子绘图时,我的绘图通常在 R 绘图窗口和 pdf 中绘图(带边框的圆圈);但是,当我在 Adob??e Illustrator 或 Inkscape 中打开保存的 pdf 版本的绘图时,这些点奇怪地转换为 "q"\\'s。谁能解释一下?这很令人沮丧,因为我想在 Illustrator 或 Inkscape 中编辑我的情节。
我想你可能想使用:
1 | useDingbats = FALSE |
如:
1 2 3 | pdf("myplot.pdf", useDingbats=FALSE) plot() dev.off() |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | On some systems the default plotting character a€?pch = 1a€? is displayed in some PDF viewers incorrectly as a a€?"q"a€? character. (These seem to be viewers based on the a€?popplera€? 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 a€?~/.fonts.confa€? or a€?/etc/fonts/local.confa€? may circumvent this problem. <fontconfig> <family>ZapfDingbats</family> <family>Dingbats</family></accept> </alias> </fontconfig> Some further workarounds for problems with symbol fonts on viewers using a€?fontconfiga€? are given in the a€?Cairo Fontsa€? section of the help for a€?X11a€?. |
该 fontconfig 声明过去(现在仍然)在我的 Linux 机器上对我有用。我建议您设置它或阅读最后引用的句子中指示的其他页面,看看它们是否解决了您看到的问题。