IRIS Toolbox Reference Manual

## plotyy

Line plot function with LHS and RHS axes for time series

#### Syntax

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

#### Input arguments

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

- `X` [ tseries ] - Input tseries object whose columns will be plotted and labelled on the LHS.

- `Y` [ tseries ] - Input tseries object whose columns will be plotted and labelled on the RHS.

#### Output arguments

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

- `Lhs` [ numeric ] - Handles to series plotted on the LHS axis.

- `Rhs` [ numeric ] - Handles to series plotted on the RHS axis.

- `Range` [ numeric ] - Actually plotted date range.

#### Options

- `'conincident='` [ `true` | `false` ] - Make the LHS and RHS y-axis grids coincident.

- `'dateFormat='` [ char | irisget('plotdateformat') ] - Date format for the tick marks on the x-axis.

- `'dateTick='` [ numeric | `Inf` ] - Vector of dates locating tick marks on the x-axis; Inf means they will be created automatically.

- `'freqLetters='` [ char | 'YHQBM' ] - Five letters to represent the five date frequencies (yearly, half-yearly, quarterly, bi-monthly, and monthly).

- `'lhsPlotFunc='` [ @area | @bar | *@plot* | @stem ] - Function that will be used to plot the LHS data.

- `'lhsTight='` [ `true` | `false` ] - Make the LHS y-axis tight.

- `'rhsPlotFunc='` [ @area | @bar | *@plot* | @stem ] - Function that will be used to plot the RHS data.

- `'rhsTight='` [ `true` | `false` ] - Make the RHS y-axis tight.

#### Description

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.