---
title: "Time Series"
author: "lindbrook"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{Time Series}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r, echo = FALSE, message = FALSE}
knitr::opts_chunk$set(collapse = TRUE, comment = ">")
library(cholera)
```

## Overview

The standard "textbook" story is that John Snow helped stem the tide of the cholera outbreak by getting local officials to remove the handle of the Broad Street pump.^[See https://www.cdc.gov/mmwr/preview/mmwrhtml/mm5334a1.htm and  https://www.nytimes.com/2017/02/06/health/cholera-vaccine-bangladesh.html]

While Snow likely believed that this action would have mitigated the outbreak, he was skeptical of its actual effect. In fact, he writes that by the time the pump was removed on Friday, 08 September 1854, "the epidemic had evidently subsided" (Snow 1855b, 153).

As part of the Vestry Report, both he and the committee included separate tables that appear to reflect separate data on the number of deaths and fatalities. I have included both as separate data sets coded in `timeSeries()`, which can be visualized using its plot method.

```{r, fig.width = 5, fig.height = 5, fig.align = "center", echo = TRUE}
plot(timeSeries())
```


