Visualise an "LRFit" object as a triangle-style heatmap of
cumulative loss ratios. Observed and projected cells are
distinguished by border style.
Usage
# S3 method for class 'LRFit'
plot_triangle(
x,
what = c("full", "pred"),
label_style = c("value", "detail"),
label_args = list(),
show_maturity = TRUE,
digits = 0,
amount_divisor = 1e+08,
theme = c("view", "save", "shiny"),
nrow = NULL,
ncol = NULL,
...
)Arguments
- x
An object of class
"LRFit".- what
One of
"full"(observed + projected) or"pred"(projected cells only). Default is"full".- label_style
One of
"value"(lr only) or"detail"(lr with loss/exposure amounts). Default is"value".- label_args
Named list of label appearance arguments.
- show_maturity
Logical; if
TRUE, show maturity line. Default isTRUE.- digits
Number of decimal places for lr display. Default is
0.- amount_divisor
Numeric divisor for amount display in
"detail"mode. Default is1e8.- theme
Theme string.
- nrow, ncol
Facet dimensions.
- ...
Additional arguments passed to
.switch_theme().
