This is a vignette to describe the use of the FARS package. It reads in files and then either summarises or creates a map of the accidents contained in the file.
Two of the most useful functions are summarising the data and mapping the data.
For example, to summarise 2015 data, we use:
library(FARS) library(dplyr) library(tidyr) library(maps)
fars_summarize_years(2015)
And to map the data, we need to supply a state and a year.
fars_map_state(21,2015)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.