Description Usage Arguments Details Value Examples
This function maps the accidents for a given state (represented by state.num
) and
year
onto a map of that state.
1 | fars_map_state(state.num, year)
|
state.num |
An integer representing the state of interest |
year |
An integer representing the year of interest |
The function checks that the state is a valid state in the data set.
If there are no accidents, no plot is produced.
This function returns a map object got a given state, with the accident locations plotted on it
1 2 3 4 5 6 | ## Not run:
fars_map_state(12,2015)
fars_map_state(21,2007)
fars_summarize_years(87,"aaa")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.