loadingplot
function represents positive values of a vector
and identifies the values above a given threshold. It can also
indicate groups of observations provided as a factor.
Such graphics can be used, for instance, to assess the weight of each
variable (loadings) in a given analysis.loadingplot(x, ...)## S3 method for class 'default':
loadingplot(x, at=NULL, threshold=quantile(x,0.75),
axis=1, fac=NULL, byfac=FALSE,
lab=NULL, cex.lab=0.7, cex.fac=1, lab.jitter=0,
main="Loading plot", xlab="Variables", ylab="Loadings",
srt = 0, adj = NULL, ...)
x[,axis]
is used as vector of values to be plotted.fac
.x <- runif(20)
names(x) <- letters[1:20]
grp <- factor(paste("group", rep(1:4,each=5)))
## basic plot
loadingplot(x)
## adding groups
loadingplot(x,fac=grp,main="My title",cex.lab=1)
Run the code above in your browser using DataLab