This function takes the numeric identifier of each state from our source data files and plots the accidents on a map of the United States. A stop clause exists if any of the state numbers are not unique. A warning also exists in th event that a row has 0 data points.
This function returns a plotted chart of the accidents on a map. If the state or year input is invalide, and error will be given.
1 2 3 4
## Not run: fars_map_state(22, 2014) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.