我開始進入R開發,並且我正在按照教程在某個點打開「X11」來顯示圖形,但是當該窗口打開時出現以下錯誤:無法找到任何X11字體錯誤
Error in axis(side = side, at = at, labels = labels, ...) : could not find any X11 fonts Check that the Font Path is correct. In addition: Warning messages: 1: In function (display = "", width, height, pointsize, gamma, bg, : locale not supported by Xlib: some X ops will operate in C locale 2: In 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
在做名(X11Fonts()):
> names(X11Fonts())
[1] "serif" "sans" "mono"
>
根據[此](https://stat.ethz.ch/pipermail/r-sig-mac/2008-March/004740.html)(我通過搜索你的錯誤信息找到)你有一個無效的區域設置。 (所以說着名的教授。) – joran 2012-01-10 18:29:50
是的,我也發現了,我試過沒有運氣的說。也許我只是做了錯誤的事情。讓我再嘗試一次。 – Tsundoku 2012-01-10 18:33:55