Description Usage Arguments Value Examples
This function plots the accidents for the state provided in the input on the map. The function throws an error if the state number in the input argument does not exist in the fars data.If there are no accidents reported for the state of interest, a message is displayed.
1 | fars_map_state(state.num, year)
|
state.num |
An integer representing the corresponding state |
year |
An integer representing the year for which the plot is made |
This returns a map with the accidents plotted for the state in the input
1 | ## Not run: fars_map_state(3,2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.