Skip to contents

A Gantt chart of one replication: each casualty is a row, each board area a coloured bar spanning the time it was there. This is the picture of the event log, and the fastest way to see where a board is congested.

Usage

sdt_plot_flow(run, replication = 1L, max_casualties = 40L)

Arguments

run

A game_run from sdt_simulate().

replication

Which replication to draw.

max_casualties

Cap on the number of casualties shown, to keep the chart readable. The earliest arrivals are kept.

Value

A ggplot2 object.

Examples

co <- sdt_synthetic_cohort(15, seed = 1)
run <- sdt_simulate(sdt_scenario(co), replications = 1, verbose = FALSE)
sdt_plot_flow(run)