Learn R Programming

epiparameter (version 0.4.1)

lines.epiparameter: lines() method for <epiparameter> class

Description

lines() method for <epiparameter> class

Usage

# S3 method for epiparameter
lines(x, cumulative = FALSE, ...)

Value

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

Arguments

x

An <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.

Examples

Run this code
ebola_si <- epiparameter_db(disease = "Ebola", epi_name = "serial")
plot(ebola_si[[1]])
lines(ebola_si[[2]])

Run the code above in your browser using DataLab