Description Usage Arguments Note Examples
This function creates a geographical map depicting the data on accidents with fatalities in a selected state in a particular year.
1 | fars_map_state(state.num, year)
|
state.num |
A single number identifying the state (see Note) |
year |
A single number representing the year from which data is asked |
While the function returns NULL, a graphical representation of the state with fatal accidents is plotted by latitude and longitude
for state.num decoding table, consult p26 of the pdf document at https://crashstats.nhtsa.dot.gov/Api/Public/Publication/812315
1 2 3 | ## Not run:
fars_map_state(6, 2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.