Description Usage Arguments Details References See Also Examples
View source: R/fars_functions.R
Draws a map of Fatality Analysis Reporting System (FARS) incidents of a
given year
for a state.
1 | fars_map_state(state.num, year)
|
state.num |
(integer) An identifier specifying the state map to be drawn.
(see also the dataset documentation)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
year |
(character or (integer) ) The year for which the filename will be created. |
If FARS file for the given year
does not exist in the current
working directory or if an undefined state.num
is selected, an error
is thrown.
US National Highway Traffic Safety Administration
(https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars)
1 2 3 4 5 6 7 | ## Not run:
# draw map of Alabama for year 2014
fars_map_state(1, 2014)
# draw map of Nevada for year 2015
fars_map_state(32, 2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.