| slplot,pcaRes-method | R Documentation |
A common way of visualizing two principal components
slplot(object, pcs=c(1,2), scoresLoadings=c(TRUE, TRUE),
sl="def", ll="def", hotelling=0.95, rug=TRUE, sub=NULL,...)
object |
a pcaRes object |
pcs |
which two pcs to plot |
scoresLoadings |
Which should be shown scores and or loadings |
sl |
labels to plot in the scores plot |
ll |
labels to plot in the loadings plot |
hotelling |
confidence interval for ellipse in the score plot |
rug |
logical, rug x axis in score plot or not |
sub |
Subtitle, defaults to annotate with amount of explained variance. |
... |
Further arguments to plot functions. Prefix arguments
to |
This method is meant to be used as a quick way to visualize
results, if you want a more specific plot you probably want to
get the scores, loadings with scores(object),
loadings(object) and then design your own plotting method.
None, used for side effect.
Uses layout instead of par to provide side-by-side so it
works with Sweave (but can not be combined with
par(mfrow=..))
Henning Redestig
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]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.