Plot link ratios for development triangle

## Syntax

``linkRatiosPlot(dT)``
``h = linkRatiosPlot(ax,___)``

## Description

example

````linkRatiosPlot(dT)` plots the link ratios for the development triangle.```

example

````h = linkRatiosPlot(ax,___)` additionally specifies the axes and returns the figure handle `h`. Use this syntax with the required input argument in the previous syntax.```

## Examples

collapse all

Generate a plot for the link ratios for a `developmentTriangle` object containing simulated insurance claims data.

```load InsuranceClaimsData.mat; head(data)```
```ans=8×4 table OriginYear DevelopmentYear ReportedClaims PaidClaims __________ _______________ ______________ __________ 2010 12 3995.7 1893.9 2010 24 4635 3371.2 2010 36 4866.8 4079.1 2010 48 4964.1 4487 2010 60 5013.7 4711.4 2010 72 5038.8 4805.6 2010 84 5059 4853.7 2010 96 5074.1 4877.9 ```

Use `developmentTriangle` to convert the data to a development triangle, which is the standard form for representing claims data.

`dT = developmentTriangle(data)`
```dT = developmentTriangle with properties: Origin: {10x1 cell} Development: {10x1 cell} Claims: [10x10 double] LatestDiagonal: [10x1 double] Description: "" TailFactor: 1 CumulativeDevelopmentFactors: [1.3069 1.1107 1.0516 1.0261 1.0152 ... ] SelectedLinkRatio: [1.1767 1.0563 1.0249 1.0107 1.0054 ... ] ```

Use the `linkRatiosPlot` function to plot a series of lines of the link ratios for the development triangle.

`linkRatiosPlot(dT)`

## Input Arguments

collapse all

Development triangle, specified as a previously created `developmentTriangle` object.

Data Types: `object`

(Optional) Valid axis object, specified as an `ax` object created using `axes`. The function creates the plot on the axes specified by the optional `ax` argument instead of on the current axes (`gca`). The optional argument `ax` must precede any of the input argument combinations.

Data Types: `object`

## Output Arguments

collapse all

Figure handle for the line objects, returned as a handle object.

## Version History

Introduced in R2021a