loadplot: Plot the Loadings of a FA

Description Usage Arguments Value Author(s) References Examples

Description

Makes a Reimann-plot of a loadings matrix.

Usage

1
loadplot(fa.object, titlepl = "Factor Analysis", crit = 0.3, length.varnames = 2)

Arguments

fa.object

the output of factor analysis class

titlepl

the title of the plot

crit

all loadings smaller than crit will be ignored in the plot

length.varnames

number of letters for abbreviating the variable names in the plot

Value

Plot of the loadings of a FA therefore a object of factor analysis class must be provided.

Author(s)

Peter Filzmoser <P.Filzmoser@tuwien.ac.at> http://cstat.tuwien.ac.at/filz/

References

C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(moss)
var=c("Ag","Al","As","B","Ba","Bi","Ca","Cd","Co","Cr","Cu","Fe","Hg","K","Mg","Mn","Mo",
      "Na","Ni","P","Pb","Rb","S","Sb","Si","Sr","Th","Tl","U","V","Zn")
x=log10(moss[,var])

x.mcd=robustbase::covMcd(x,cor=TRUE)
x.rsc=scale(x,x.mcd$cent,sqrt(diag(x.mcd$cov)))
res5=pfa(x.rsc,factors=2,covmat=x.mcd,scores="regression",rotation="varimax",
    maxit=0,start=rep(0,ncol(x.rsc)))
loadplot(res5,titlepl="Robust FA (log-transformed)", crit=0.3)

StatDA documentation built on March 13, 2020, 2:42 a.m.

Related to loadplot in StatDA...