Description Usage Arguments Details Value Examples
This function plots a map with all the accident recorded in the given state and year, when the state number and year are provided.
1 | fars_map_state(state.num, year)
|
state.num |
an integer |
year |
an integer |
If the provided state number does not exist in the data for the given year, the function returns an error message.
If there are no accidents in a given state and year, the function returns an error message.
This function returns a graphical object containing locations of accidents.
1 2 3 4 | ## Not run:
fars_map_state(16, 2017)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.