Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
This function draws a wireframe map of a given state and year from US National Highway Traffic Safety Administration's Fatality Analysis Reporting System
(FARS) data for given years. See fars_read_years
. State numbering is used.
1 | fars_map_state(state.num, year)
|
state.num |
integer number of a state |
year |
integer, the year |
NULL, draws a map into dev
Only one state and year work, providing leads to errors. Missing FARS data for the given year causes an error.
The files are expected to be in the same directoty where the function is run.
See fars_read_years
for FARS data details and file requirements.
1 | ## Not run: fars_map_state(1, 2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.