Description Usage Arguments Value Examples
fars_map_state
plots geographical distribution of accidents on a map
of respective state chosen by user using R's base graphics system. Function
stops with a message if state number is not found in a dataset or returns
NULL if there are no accidents in a given state.
1 | fars_map_state(state.num, year)
|
state.num |
state ID number |
year |
value for year |
map plot
1 2 | my_state_id <- 1
fars_map_state(my_state_id, 2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.