plot.time_series {cholera}R Documentation

Plot aggregate time series data from Vestry report.

Description

Plot aggregate fatality data and indicates the date of the removal of the handle of the Broad Street pump.

Usage

## S3 method for class 'time_series'
plot(x, statistic = "fatal.attacks",
  pump.handle = TRUE, main = "Removal of the Broad Street Pump Handle",
  type = "o", xlab = "Date", ylab = "Fatalities", ...)

Arguments

x

An object of class "time_series" from timeSeries().

statistic

Character. Fatality measure: either "fatal.attacks" or "deaths".

pump.handle

Logical. Indicate date of removal of Broad Street pump handle.

main

Character. Title of graph.

type

Character. R plot type.

xlab

Character. x-axis label.

ylab

Character. y-axis label.

...

Additional plotting parameters.

See Also

timeSeries

Examples

plot(timeSeries())
plot(timeSeries(), statistic = "deaths")
plot(timeSeries(), bty = "n", type = "h", lwd = 4)

[Package cholera version 0.7.5 Index]