[R] changing x and y ranges in a PCA plot created by library(labdsv)

Mohsen Sharafatmandrad mohsen.sharafatmandrad at gmail.com
Mon Aug 8 09:48:57 CEST 2016


I want to change x and y ranges in a PCA plot created by library(labdsv).
When I run "plot(o.pca, xlim=c(-2, 3), ylim=c(-2, 4))", nothing will
change. Script is as fallow:



raw<- matrix(c(1,2,2.5,2.5,1,0.5,0,1,2,4,3,1),nrow=6)

colnames(raw)<- c("s1","s2")

rownames(raw)<- c("r1","r2","r3","r4","r5","r6")

cent<- scale(raw,scale=FALSE)

o.pca <- pca(cent)

plot(o.pca)

plot(o.pca, xlim=c(-2,3), ylim=c(-2,4))


-- 
Cheers

Mohsen Sharafatmandrad

	[[alternative HTML version deleted]]



More information about the R-help mailing list