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]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.