pkgdown/extra.css

Skip to contents

[Experimental]

The "delay_distribution" panel of autoplot(), drawn on its own: a case-count weighted histogram of .delay. For count-cumulative data it becomes the cumulative growth by delay instead — boxplots, on a log scale, of the ratio of each event date's cumulative count at a delay to its count at the previous delay.

Usage

plot_delay_distribution(x, ...)

Arguments

x

A tbl_now() object.

...

Further arguments passed to autoplot.tbl_now(), e.g. by_strata, strata, delay_distribution_xlim, plotly or palette.

Value

A ggplot2 object (or a plotly widget when plotly = TRUE).

Examples

data(denguedat)
dengue_now <- tbl_now(denguedat, onset_week, report_week, verbose = FALSE)
plot_delay_distribution(dengue_now)