Description Usage Arguments Value Examples
This function takes as input a state and a year and plots a map of the location of the entries in the US National Highway Traffis Safety Administration's Fatality Anlaysis Reporting System (FARS) for the given state and year. The function throws an error if the state/year combination do not exist in the FARS database.
1 | fars_map_state(state.num, year)
|
state.num |
Numeric indicating the state for the map. Will be coerced to an integer. |
year |
Numeric indicating the year to map. Will be coerced to an integer. |
As a side-effect, plots a map of FARS entries for the state and year
1 2 | library(FARS)
fars_map_state(1,2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.