plot_diagnostic_ww | R Documentation |
Diagnostic plot for R estimation from wastewater data
plot_diagnostic_ww(r.estim, caption = NULL, wrap.plots = TRUE)
r.estim |
List. Output of |
caption |
Character. Optional plot caption. |
wrap.plots |
Logical.
Wrap all diagnostic plots into one single ggplot object (default = |
A ggplot
object.
estimate_R_ww()
plot_diagnostic_cl()
# Load data of viral concentration in wastewater
data("ww.data")
# Estimate Rt based on wastewater data
x = estimate_R_ww(
ww.conc = ww.data,
dist.fec = ern::def_dist(
dist = "gamma",
mean = 12.9,
mean_sd = 1.13,
shape = 1.75,
shape_sd = 0.26,
max = 33
),
dist.gi = ern::def_dist(
dist = "gamma",
mean = 6.84,
mean_sd = 0.74,
shape = 2.39,
shape_sd = 0.35,
max = 15
),
silent = TRUE
)
# Diagnostic plot
g = plot_diagnostic_ww(x)
plot(g)
g2 = plot_diagnostic_ww(x, wrap.plots = FALSE, caption = "This is your caption")
plot(g2$wastewater_data)
plot(g2$inferred_incidence)
plot(g2$Rt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.