stressIndexChart: Financial stress index data line chart with regions.

Description Usage Arguments Details See Also Examples

View source: R/plots.R

Description

Provides a convenience function for passing a cfsi object to xyplot with attributes as presented by the source.

Usage

1
stressIndexChart(e, range = NA, showGradeRegions = TRUE)

Arguments

e

an object of class cfsi as returned by getStressIndex.

range

a range string as used by xts to subset time series dates, e.g. "1996/1997". Defaults to NA for full range.

showGradeRegions

whether to show the stress grade regions and labels

Details

Provides several assumptions about the display of the cfsi data to correspond to similar presentations at the Cleveland Fed's data site.

See Also

xyplot.cfsi getStressIndex

Examples

1
2
3
4
5
## Not run: 
idx <- getStressIndex()
stressIndexChart(idx)

## End(Not run)

stressr documentation built on May 19, 2017, 11:42 p.m.

Search within the stressr package
Search all R packages, documentation and source code