Description Usage Arguments Value Note Examples
Plot a state map with accidents as points. States are selected by specifing their number from data files.
1 | fars_map_state(state.num, year)
|
state.num |
numeric, a number of a state to plot |
year |
numeric or character with year number |
NULL, this function only plots
The function will return an error if there are no accidents registered in requested state and year or the state.num is invalid
1 2 3 4 | fars_map_state(1, 2013)
fars_map_state(30, 2015)
# invalid state.num
fars_map_state(100, 2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.