Plot the observed delays of a dataset
Usage
# S3 method for class 'epidist_linelist_data'
plot_delays(
x,
by = NULL,
binwidth = 1,
delay_min = NULL,
reference = NULL,
family = "lognormal",
...
)Arguments
- x
An
epidist_linelist_dataorepidist_aggregate_dataobject, a named list of them to compare, or a model fitted withepidist().- by
A string naming a column of
xto stratify the delays by.- binwidth
The width of the delay bins, on the scale of the event times. Defaults to 1, the daily censoring the data usually has.
- delay_min
The minimum delay to mark with a dashed vertical line, as a number on the scale of the event times. If
NULL, the default, thedelay_mincolumn ofxis used when it has one and no line is drawn otherwise.- reference
A named numeric vector of the distributional parameters of a delay distribution to draw over the columns, as
c(mu = 1.8, sigma = 0.5)for a lognormal delay. IfNULL, the default, no distribution is drawn.- family
A
brmsfamily, or the name of one, giving the delay distributionreferenceholds the parameters of. Defaults to"lognormal".- ...
Passed to the method.
