1
ggbiplot
ggfortify
패키지에서 사용하려고합니다. 정상적으로 작동하지만 다음과 같이 경고 메시지가 표시됩니다.경고 메시지가 ggfortify :: ggbiplot
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
잘못된 단계를 밟았거나 버그입니까?
감사합니다, 나는 첫 번째 행으로 행 이름을 추가 rowname_to_column' '와 같은 일을 시도 data.frame의. 그것이 문제가되는 곳입니다. – TheRimalaya