Problem on R when creating a PCA plot

Problem on R when creating a PCA plot

0

A very weird thing is happening to me on R, the first time i installed “ggfortify” pacakage to create a PCA plot, the result was an Rplots.pdf file, it worked perfectly. The second time i used it, with the same exact data and commands, the result is an empty Rplots.pdf file and continues to happen every time i try to run R.

Can someone tell me what is the problem?

I used the following commands in R:

library(“ggfortify”)

q<-read.table(“result_file_PCA.rel”,head=F)

q2<-read.table(“file1.clst”,head=T)

autoplot(prcomp(q), data = q2,colour=”CLUSTER”)

Thank you very much for your help.


ggfortify


R


plot


Error


PCA

• 36 views

Read more here: Source link