plot-methods {robustfa} | R 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 |
which |
indicate what kind of plot. If |
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")