Learn R Programming

rshift (version 3.1.2)

RSI_graph: Regime Shift Index graph

Description

creates two graphs, one of data and one of the RSI, as seen in Rodionov (2004)

Usage

RSI_graph(data, col, time, rsi, mean_lines = FALSE)

Value

Two graphs, one on top of the other; one of col against time and one of RSI against time.

Arguments

data

The dataframe that will be used.

col

The column we are measuring change on.

time

The column containing time units (e.g. age of a subsample)

rsi

The column containing RSI values (for best visualisation use Rodionov() with merge=TRUE)

mean_lines

If true, add lines over the data indicating the mean of each regime.

Examples

Run this code
RSI_graph(lake_RSI, "DCA1", "Age", "RSI")

Run the code above in your browser using DataLab