knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(farsr)
This package takes data compiled by the Fatality Analysis Reporting System and outputs graphs and tables of this data.
You are able to map fatalities for a particular year and state by specifying
a state number and year in fars_map_state
.
Turns out it's really hard to get vignettes working with raw data.
# fars_map_state(state.num = 10, year = 2014) # fars_map_state(state.num = 11, year = 2014)
You can also output a summary table of monthly fatalities for each year of FARS data. The following will output a table for the year 2014:
# knitr::kable(fars_summarize_years(years = 2014))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.