stressAreaChart: Financial stress component data as a stacked area chart.

Description Usage Arguments Details See Also Examples

View source: R/plots.R

Description

Provides a convenience function for passing a stress object to xyplot to render a sand (stacked area) chart.

Usage

1

Arguments

e

an object of class stress as returned by getStressComponents and its many offspring.

range

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

Details

Provides several assumptions about the display of the stress data to correspond to similar presentations at the Cleveland Fed's data site. To implement the stacked area chart the function first computes the column-wise value accumulations, then passes these values to the latticeExtra xyarea polygon rendering tools. Plots the columns in reverse stacking order to show the desired overlaps.

See Also

xyplot.stress stressLineChart getStressComponents getComponentSummary getEquityMarkets getFundingMarkets getCreditMarkets getForeignExchangeMarkets getRealEstateMarkets getSecuritizationMarkets

Examples

1
2
3
4
5
## Not run: 
es <- getEquityStress()
stressAreaChart(es)

## End(Not run)

stressr documentation built on May 2, 2019, 10:20 a.m.