首页 > 解决方案 > strwidth("W", cex = tl.cex) 中的错误:尚未调用 plot.new

问题描述

corrplot在 R (for mac) 中使用包,我有一条错误消息

strwidth("W", cex = tl.cex) 中的错误:尚未调用 plot.new

有人可以帮我吗?


更多细节:

我正在尝试使用这些命令来可视化带有圆圈 + 黑色数字的 Pearson 相关图

corrplot(x.cor, order = "original", type = "upper", tl.pos = "tp") 

corrplot(x.cor, add = TRUE, type = "lower", method = "number", 
         order = "original", col = "black", diag = FALSE,
         tl.pos = "n", cl.pos = "n") 

第一个命令执行良好,但第二个命令有以下错误和白色窗口(石英 2)没有绘图:

strwidth("W", cex = tl.cex) 中的错误:尚未调用 plot.new

标签: rr-corrplot

解决方案


推荐阅读