knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
There are two things you can do with the fars package:
fars_summarize_years()
functionfars_map_state()
functionYou can install fars from github with:
# install.packages("devtools") devtools::install_github("john-s-christensen/fars")
Here is a basic example:
library(fars) fars_summarize_years(c(2013, 2014, 2015)) fars_map_state(48, 2015)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.