Learn R Programming

epiparameter (version 0.4.1)

plot.multi_epiparameter: plot() method for <multi_epiparameter> class

Description

Plots a list of <epiparameter> objects by overlaying their distributions.

Usage

# S3 method for multi_epiparameter
plot(x, cumulative = FALSE, ...)

Value

These functions are invoked for their side effect of drawing on the active graphics device.

Arguments

x

A <multi_epiparameter> object.

cumulative

A boolean logical, default is FALSE. cumulative = TRUE plots the cumulative distribution function (CDF).

...

further arguments passed to or from other methods.

Author

Joshua W. Lambert

Details

Unparameterised and discrete <epiparameter> objects are not plotted (see is_parameterised() and is_continuous()).

Examples

Run this code
ebola_si <- epiparameter_db(disease = "Ebola", epi_name = "serial")
plot(ebola_si)

Run the code above in your browser using DataLab