Collapse a tidy tibble of trajectories to a mean, median and central
interval at each time, ready for ggplot2::geom_ribbon(). The summary
is taken over draws, chains and particles; every other column
(variable, time, group, array dimensions and any columns you have
added, such as a scenario) is kept as a grouping.
Arguments
- data
A tibble from
tidy_trajectories(),tidy_simulation()ortidy_filter().- interval
Width of the central interval, by default 0.95.