psych (version 1.0-95)

biplot.psych: Draw biplots of factor or component scores by factor or component loadings

Description

Applies the biplot function to the output of fa or principal. Will plot factor scores and factor loadings in the same graph. If the number of factors > 2, then all pairs of factors are plotted. Factor score histograms are plotted on the diagonal. The input is the resulting object from fa or principal with the scores=TRUE option.

Usage

biplot.psych(x, labels=NULL,cex=c(.75,1),main="Biplot",hist.col="cyan",xlim=c(-3,3),ylim=c(-3,3),...)

Arguments

x
The output from fa or principal with the scores=TRUE option
labels
if NULL, draw the points with small o. To identify the data points, specify labels= 1:n where n is the number of observations, or labels =rownames(data) where data was the data set analyzed by the factor analysis.
cex
plot size of the data points and of the factor labels
main
A main title for a two factor biplot
hist.col
If plotting more than two factors, the color of the histogram of the factor scores
xlim
Defaults to plus/minus three sigma
ylim
Defaults to plus/minus three sigma
...
more options for graphics

Details

Uses the generic biplot function to take the output of a factor analysis fa or principal components analysis principal and plot the factor/component scores along with the factor/component loadings.

See Also

fa, principal, factor.plot, pairs.panels

Examples

Run this code
data(USArrests)
fa2 <- fa(USArrests,2,scores=TRUE)
biplot(fa2,labels=rownames(USArrests))
data(bfi)
fa3 <- fa(bfi[1:200,1:15],3,scores=TRUE)
biplot(fa3)

Run the code above in your browser using DataCamp Workspace