kevinblighe / PCAtools

PCAtools: everything Principal Components Analysis
327 stars 67 forks source link

biplot error message #65

Open renliang1996 opened 1 year ago

renliang1996 commented 1 year ago

Hi Kevin,

I am using the latest version of PCAtools in R 4.2.2. I want to know how to solve this error. First of all, my code:

data(iris) library(PCAtools) res <- pca(iris[,-5], scale=TRUE, center=TRUE, transposed=TRUE) biplot(res)

The error message I received is as follows:

Error in $<-.data.frame(*tmp*, "col", value = integer(0)) : replacement has 0 rows, data has 150