powered by
Plot aggregate fatality data and indicates the date of the removal of the handle of the Broad Street pump.
# S3 method for time_series plot(x, statistic = "fatal.attacks", pump.handle = TRUE, main = "Removal of the Broad Street Pump Handle", type = "o", xlab = "Date", ylab = "Fatalities", ...)
An object of class "time_series" from timeSeries().
Character. Fatality measure: either "fatal.attacks" or "deaths".
Logical. Indicate date of removal of Broad Street pump handle.
Character. Title of graph.
Character. R plot type.
Character. x-axis label.
Character. y-axis label.
Additional plotting parameters.
timeSeries
plot(timeSeries()) plot(timeSeries(), statistic = "deaths") plot(timeSeries(), bty = "n", type = "h", lwd = 4)
Run the code above in your browser using DataLab