Visualise gap positions on a cohort x dev grid: for every cohort
with gaps, expanded dev cells are coloured by status (observed /
missing). Complements plot.TriangleValidation() (which shows
observed-vs-expected counts as bars) – this heatmap shows where
the gaps are.
When the validation found no gaps, prints a message and returns
invisible(NULL).
Usage
# S3 method for class 'TriangleValidation'
plot_triangle(
x,
view = c("calendar", "dev"),
show_label = FALSE,
theme = c("view", "save", "shiny"),
...
)Arguments
- x
A
TriangleValidationobject.- view
Axis layout. One of
"calendar"(cohort x calendar grid, default) or"dev"(cohort x dev grid)."calendar"requires the calendar column to have been supplied tovalidate_triangle();"dev"works when either calendar or dev was supplied.- show_label
Logical; when
TRUE, overlay each cell with the input row count (.N). DefaultFALSE.- theme
String passed to
.switch_theme().- ...
Extra arguments passed to
.switch_theme().
