我收到了这个
Error in if (min(corr) < -1 - .Machine$double.eps || max(corr) > 1 + .Machine$double.eps) { : missing value where TRUE/FALSE needed
不知道是什么意思。我的数据中有缺失值,想删除该行数据。我以前获取 corrplot 的代码是
library(corrplot)
C <- cor(SIMPIN_Data)
corrplot(C, method="number", use="complete.obs")
帮助?我是 R 的新手。
我的数据是这样的
1-Response time 1-Accuracy 2-Response time 2-Accuracy 3-Response Time 3-Accuracy
1 500 .80 200 .60 100 .99
2 550 NA 250 .30 900 .50
3 550 .20 250 .30 900 .50
最佳答案
我刚刚修复了这个已知的 corrplot 问题“启用使用 NA 绘制矩阵”。参见 https://github.com/taiyun/corrplot/issues/7
问题确实在min(corr,na.rm=TRUE)
和 max(corr,na.rm=TRUE)
正如@nicola 所建议的
你可以从github下载最新版本:
install.packages("devtools")
devtools::install_github("taiyun/corrplot")
关于r - 在 corrplot 中需要 TRUE/FALSE 的地方缺少值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35854801/