Skip to contents

Produce a time plot of attendant care hours per billing period for specific disaggregations.

Usage

plot_forecasts(
  forecasts,
  data,
  show_age_group = "<aggregated>",
  show_injury_group = "<aggregated>"
)

Arguments

forecasts

A fable object created by get_forecasts

data

The data used to construct the forecasts. This should be a tsibble object of the same form as group_costs.

show_age_group

A character string specifying either a specific age group or "<aggregated>" meaning the total across all age groups.

show_injury_group

A character string specifying either a specific injury group or "<aggregated>" meaning the total across all injury groups.

Author

Rob J Hyndman

Examples

if (FALSE) {
  group_costs |> 
    get_forecasts(h=13, nsim=100) |> 
    plot_forecasts(group_costs)
}