plot.factorAnalysis: Plot a Factor Solution

View source: R/plot.R

plot.factorAnalysisR Documentation

Plot a Factor Solution

Description

This function plots the pattern matrix for a principal components or common factor analysis solution

Usage

## S3 method for class 'factorAnalysis'
plot(x, y, ..., sort = FALSE, type = c("bar", "table"))

Arguments

x

an object of class factorAnalysis produced by the PCA or FA functions.

y

not used

...

not used

sort

logical. If TRUE, sort the pattern matrix.

type

generate a bar plot ("bar") or table plot ("table").

Value

a ggplot2 graph

Examples

fit.pca <- PCA(Harman74.cor$cov, nfactors=4, rotate="varimax")
plot(fit.pca, sort=TRUE)
plot(fit.pca, sort=TRUE, type="table")

Rkabacoff/factorAnalysis documentation built on March 21, 2022, 3:15 p.m.