This is a function that read an accident files for a given year and plots a map showing accident locations for a given state in that year.
An integer corresponding to a state number in the maps package
A character string or integer indicating a year
This function produced a plot, if there are accidents to plot in that state in that year
If there are no accidents to plot in that state in that year, the function issues a warning. If the state number does not correspond to a state in the accident data file the function produces an error.
## Not run: fars_map_state(12,2014)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.