
Last chance! 50% off unlimited learning
Sale ends in
slplot(object, pcs=c(1,2), scoresLoadings=c(TRUE, TRUE),
sl="def", ll="def", hotelling=0.95, rug=TRUE, sub=NULL,...)
par()
with 's' for the scores plot and 'l' for the
loadings plot. I.e. cex become scex for setting character
expansion in the score plot and lcex for the loadings plot.scores(object)
,
loadings(object)
and then design your own plotting method.
pca
, biplot
data(iris)
pcIr <- pca(iris[,1:4], scale="uv")
slplot(pcIr, sl=NULL, spch=5)
slplot(pcIr, sl=NULL, lcex=1.3, scol=as.integer(iris[,5]))
Run the code above in your browser using DataLab