plotld {plotpc} | R Documentation |
Plot principal component loadings
Description
Plot principal component loadings.
Usage
plotld(x, npc=3, main="Loadings", lty=1, lwd=4 / 1:npc,
col=gray(0:(npc-1) / npc), ylim=range(loadings), abs.=FALSE,
cex=.8, ylab=if(abs.) "abs(loading)" else "loading",
legend.x=NULL, legend.y=NULL)
Arguments
x |
A matrix or dataframe, passed directly to |
npc |
Number of principal components to plot.
Default |
main |
Plot title.
Default |
lty |
Line type for for plotted lines.
Default |
lwd |
Line width of plotted lines.
The default is ugly but effective: |
col |
Color of plotted lines.
Default is a range of grays:
|
ylim |
Vertical limits of the graph.
Default |
abs. |
Use absolute values of loadings.
Default |
cex |
Character expansion for axis and legend text.
Default |
ylab |
Default |
legend.x , legend.y |
Position of the legend.
Default |
See Also
Examples
data(iris)
x <- iris[, -5] # -5 to drop Species
plotld(x)
[Package plotpc version 1.0.4 Index]