Description Usage Arguments Value Examples
View source: R/farsfunctions.R
This function produces a map of the location of fatalities per state and input year from a standard NHFTS FARS /hrefhttps://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars file containing that year in the filename.
1 | fars_map_state(state.num, year)
|
state.num |
An integer representing each US state in the NHFTS FARS format file in the STATE attribute |
year |
A string of length 4 representing the year in the file name |
A plot of the state boundary polygon with fatalities as points. If an invalid state number or if there are no fatalities recorded for that state for the input year a warning message will be returned.
1 | fars_map_state(6, 2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.