Plot an object of class "Fa"

Share:

Description

Plot an object of class "Fa". If which = "factorScore", then a scatterplot of the factor scores is produced; if which = "screeplot", shows the eigenvalues and is helpful to select the number of factors.

Usage

1
2
## S4 method for signature 'Fa'
plot(x, which=c("factorScore", "screeplot"), choices=1:2)

Arguments

x

an object of class "Fa" or of a class derived from "Fa"

which

indicate what kind of plot. If which = "factorScore", then a scatterplot of the factor scores is produced; if which = "screeplot", shows the eigenvalues and is helpful to select the number of factors.

choices

an integer vector indicate which columns of the factor scores to plot

Details

The feasible usages are: plot(x, which="factorScore", choices=1:2) plot(x, which="screeplot")

Methods

signature(x = "Fa", y = "missing")

generic functions - see plot

Author(s)

Ying-Ying Zhang (Robert) robertzhangyying@qq.com

References

Zhang, Y. Y. (2013), An Object Oriented Solution for Robust Factor Analysis.

Examples

1
2
3
4
5
6
7
8
9
data("hbk")
hbk.x = hbk[,1:3] 

faClassicPcaReg = FaClassic(x = hbk.x, factors = 2, method = "pca",
scoresMethod = "regression"); faClassicPcaReg
summary(faClassicPcaReg)

plot(faClassicPcaReg, which = "factorScore", choices = 1:2)
plot(faClassicPcaReg, which = "screeplot")