grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, 中的错误:未找到多边形边缘 [英] Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : Polygon edge not found

查看:57
本文介绍了grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, 中的错误:未找到多边形边缘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在 Mac OS X 版本 10.7.3 上安装了 RStudio.执行以下命令后

I just installed RStudio on Mac OS X, version 10.7.3. After executing the following commands

library(ggplot2)
qplot(mpg, wt, data=mtcars)

我收到以下错误:

Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  : 
  Polygon edge not found
In addition: Warning messages:
1: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  :
  no font could be found for family "Arial"
2: In grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  :
  no font could be found for family "Arial"

我该如何解决这个问题?

How do I fix this?

推荐答案

这发生在我身上,我发现 arial 字体文件已被禁用.首先检查 Arial.ttf 是否已移至禁用字体目录.从终端:

this happened to me and i discovered that the arial font file had been disabled. first check to see if Arial.ttf has been moved to the disabled fonts directory. from the terminal:

ls /Library/Fonts Disabled

如果是,请将其移回活动字体目录.

if so, move it back to the active fonts directory.

sudo mv /Library/Fonts Disabled/Arial.ttf /Library/Fonts

注销,登录,然后打开字体簿"应用程序.就我而言,arial 是事先存在的,但它是存储在 /Library/fonts/Microsoft/ 中的 Microsoft 版本.字体簿现在可能会在字体名称旁边显示一个黄色三角形,表示存在该字体的多个副本.突出显示字体名称并从 Edit 菜单中选择 Resolve Duplicates 命令.这应该会禁用 Microsoft 副本,您可以通过选择一种 arial 字体来确认(单击字体名称旁边的展开三角形),右键单击标记为 Off 的那个,然后选择 在 Finder 中显示,这应该会打开一个指向 Microsoft 字体目录的窗口.

log out, log in, then open the 'Font Book' application. in my case, arial was present before hand, but it was the Microsoft version stored in /Library/fonts/Microsoft/. Font Book may now show a yellow triangle next to the font name, indicating that multiple copies of the font exist. highlight the font name and chose the Resolve Duplicates command from the Edit menu. this should disable the Microsoft copy, which you can confirm by selecting one of the arial type faces (click the expand triangle next to the font name), right-click on the one labelled Off, and choose Reveal in Finder, which should open a window to Microsoft fonts directory.

这篇关于grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, 中的错误:未找到多边形边缘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆