Skip to contents

Visualises output of queue_curve(): production vs fleet size, with a secondary panel of queue time. This is the single most useful picture in haulage planning - it shows where extra trucks stop buying tonnes.

Usage

plot_queue_curve(curve, target_tph = NULL)

Arguments

curve

A data.frame from queue_curve().

target_tph

Optional production target to draw as a reference line.

Value

A ggplot object.

Examples

curve <- queue_curve(12, 2, 18, 3, 90)
plot_queue_curve(curve, target_tph = 1200)
#> Warning: Use of `curve$prod_tph` is discouraged.
#> ℹ Use `prod_tph` instead.
#> Warning: Use of `curve$queue_min` is discouraged.
#> ℹ Use `queue_min` instead.