I wanna use PCA but I can not plot it! I run PCA successfully using packege and following code:
pc<-prcomp(C, scale = FALSE)
summary(pc)
then for plot I used
library(devtools)
install_github("vqv/ggbiplot")
library(ggbiplot)
ggbiplot(pc)
But I get this error:
Error in names(df.v) <- names(df.u) :
'names' attribute [2] must be the same length as the vector [1]