Learn R Programming

robustfa (version 1.0-4)

plot-methods: 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

## S3 method for class '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")

References

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

Examples

Run this code
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")

Run the code above in your browser using DataLab