Last data update: 2014.03.03

R: Plot loadings
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)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(FinTS)
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/FinTS/plot.loadings.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot.loadings
> ### Title: Plot loadings
> ### Aliases: plot.loadings
> ### Keywords: hplot
> 
> ### ** 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)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>