Learn R Programming

disbayes (version 1.1.0)

plot.disbayes: Quick and dirty plot of estimates from disbayes models against age

Description

Posterior medians and 95

Usage

# S3 method for disbayes
plot(x, variable = "cf", ...)

Value

A ggplot2 object that can be printed to show the plot, or customised by adding geoms.

Better plots can be drawn by tidying the object returned by disbayes, and using ggplot2 directly on the tidy data frame that this produces. See the vignette for examples.

Arguments

x

Object returned by disbayes

variable

Name of the variable of interest to plot against age, by default case fatality rates.

...

Other arguments. Currently unused