IRIS Toolbox Reference Manual

## plotcmp

Comparison graph for two time series

#### Syntax

    [Ax,Lhs,Rhs] = plotcmp(X,...)
    [Ax,Lhs,Rhs] = plotcmp(Range,X,...)

#### Input arguments

- `Range` [ numeric ] - Date range; if not specified the entire range of the input tseries object will be plotted.

- `X` [ tseries ] - Tseries object with two or more columns; the difference (between the second and the first column (or any other linear combination of its columns specified through the option `'compare='`) will be displayed as an RHS area or bar graph.

#### Output arguments

- `Ax` [ numeric ] - Handles to the LHS and RHS axes.

- `Lhs` [ numeric ] - Handles to the two original lines.

- `Rhs` [ numeric ] - Handles to the area or bar difference graph.

#### Options

- `'compare='` [ numeric | `[-1;1]` ] - Linear combination of the observations that will be plotted in the RHS graph; `[-1;1] means a difference between the second series and the first series,`X{:,2}-X{:,1}`.

- `'cmpColor='` [ numeric | `[1,0.75,0.75]` ] - Color that will be used to plot the area or bar difference (comparison) graph.

- `'cmpPlotFunc='` [ `@area` | `@bar` ] - Function that will be used to plot the difference (comparision) data on the RHS.

See help on `tseries/plotyy` for other options available.

#### Description

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.