R Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label)

在Ubuntu18.04中使用R中的ggplot2画图,出现如下报错:

Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  :
X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 9 could not be loaded

解决办法:

sudo apt install r-cran-plotly   

重启Rstudio,发现可用
如是其他Ubuntu版本,解决办法参见https://stackoverflow.com/questions/51324093/error-in-grid-call

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。