plot.time_series | R Documentation |
Plot aggregate fatality data and indicates the date of the removal of the handle of the Broad Street pump.
## 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", ...)
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. |
timeSeries
plot(timeSeries())
plot(timeSeries(), statistic = "deaths")
plot(timeSeries(), bty = "n", type = "h", lwd = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.