plot.loadings: Plot loadings

View source: R/plot.loadings.R

plot.loadingsR Documentation

Plot loadings

Description

Plots loadings as a separate barplot for each factor.

Usage

## S3 method for class 'loadings'
plot(x, n = 5, k = ncol(x), mfrow = c(k, 1), ...)

Arguments

x

A loadings object.

n

Number of components of each factor to plot.

k

Number of factors to plot.

mfrow

Passed to par(mfrow = ...) if k > 1.

...

Other arguments passed to barplot.

Details

The top n components of each of the top k factors are displayed in a separate barplot.

Value

Return value is a list of the return values from each barplot invocation.

See Also

barplot

Examples

data(m.barra.9003)
rtn <- m.barra.9003
stat.fac <- factanal(rtn, factors = 3)
m.barra.loadings <- loadings(stat.fac)
plot(m.barra.loadings)

FinTS documentation built on May 29, 2024, 4:24 a.m.

Related to plot.loadings in FinTS...