Description Usage Arguments Value Note Examples
This function loads the data from the Fatality Analysis Reporting System and creates a plot with the map of the given state and the fatalities of the given year.
1 | fars_map_state(state.num, year)
|
state.num |
Unique state number as in the Fatality Analysis Reporting System data. |
year |
Year for which the plot should be produces. |
None.
This function will create an error if the file for the given year does not exist or if the state number is invalid.
1 2 3 4 | ## Not run:
fars_map_state(1, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.