Description Usage Arguments Details Value Examples
This functions map the accident data for a state-year combination
1 | fars_map_state(state.num, year)
|
state.num |
An integer representing the state ID |
year |
A year |
If the state.num is invalid an error will be thrown specifying this If there is no data associated with the state, a message "no accidents to plot" will be shown, a invisible NULL is returned If there is some data, points representing where the accidents occur is shown on a map
A map object or NULL if there is no accidents to report
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.