我开始学习R开发,并遵循教程,在某个点上打开“X11”来显示图形,但当该窗口打开时,我收到以下错误消息:
“Error in axis(side = side,at = at,labels = labels,...):无法找到任何X11字体,请检查字体路径是否正确。此外:警告消息:1:在function(display =“”,width,height,pointsize,gamma,bg,:locale not supported by Xlib: some X ops will operate in C locale 2:在function(display =“”,width,height,pointsize,gamma,bg,:X cannot set locale modifiers”
我已经在谷歌上搜索了一番,但是我找不到如何修复此应用程序的“字体路径”,有人知道吗?
编辑
sessionInfo()的输出:
“Error in axis(side = side,at = at,labels = labels,...):无法找到任何X11字体,请检查字体路径是否正确。此外:警告消息:1:在function(display =“”,width,height,pointsize,gamma,bg,:locale not supported by Xlib: some X ops will operate in C locale 2:在function(display =“”,width,height,pointsize,gamma,bg,:X cannot set locale modifiers”
我已经在谷歌上搜索了一番,但是我找不到如何修复此应用程序的“字体路径”,有人知道吗?
编辑
sessionInfo()的输出:
> sessionInfo()
R version 2.13.2 (2011-09-30)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] C/UTF-8/C/C/C/C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] galgo_1.1 R.oo_1.8.2 R.methodsS3_1.2.1
loaded via a namespace (and not attached):
[1] tools_2.13.2
当执行names(X11Fonts())时:
> names(X11Fonts())
[1] "serif" "sans" "mono"
>