【发布时间】:2017-03-20 20:09:20
【问题描述】:
我正在尝试使用 ggbiplotfrom ggfortify 包。它似乎工作正常,但我收到如下警告消息,
mdl <- pls::plsr(mpg ~ ., data = mtcars, scale = T)
scrs <- data.frame(pls::scores(mdl)[])
loads <- data.frame(pls::loadings(mdl)[])
ggfortify::ggbiplot(scrs, loads,
label.label = rownames(scrs), asp = 1, label = T, label.size = 3,
loadings = T, loadings.label = T, loadings.label.label = rownames(loads))
Warning messages:
1: In if (value %in% columns) { :
the condition has length > 1 and only the first element will be used
2: In if (value %in% columns) { :
the condition has length > 1 and only the first element will be used
我是否采取了错误的步骤或者是错误。
【问题讨论】:
标签: r ggplot2 warnings ggbiplot ggfortify