【发布时间】:2014-03-26 21:00:21
【问题描述】:
我想绘制相关图。
features = features[,-2]
features<- scale(features[2:ncol(features)],center=TRUE,scale=TRUE);
correlationmatrix <- cor(features)
corrplot(correlationmatrix, order = "hclust")
直到第 3 行,一切正常。运行corrplot() 时,我得到:
if (min(corr) 1 + .Machine$double.eps) { 中的错误: 需要 TRUE/FALSE 的缺失值
【问题讨论】:
-
请提供您的数据样本以制作reproducible example。
标签: r r-corrplot