plot-methods: Plot an object of class "Fa"

plot-methodsR Documentation

Plot an object of class "Fa"

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

## 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


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")


robustfa documentation built on April 16, 2023, 5:18 p.m.