The data comes in raw format (*.bz2 files) and the functions access them in the background. The files can be found in the inst/extdata folder of the package.
The package has a fars_summarize_years() function which calculates the number of accident per month for the year(s) given as argument to the function. Two examples
fars::fars_summarize_years(2013) fars::fars_summarize_years(c(2013, 2014))
The package has a fars_map_state() function that draws the the map of the selected states with loacations of the accidents. Example
fars::fars_map_state(1, 2013)
State codes(numbers) to use with the fars_map_state() function together with addtional information can be found here
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.