View source: R/fars_functions.R
fars_map_state | R Documentation |
This function generates a US state map with the locations of the fatalities for a given year. An error is given if the state number is not present in the data set. If no fatalities present a messages is generated
fars_map_state(state.num, year)
state.num |
An integer representing a US state |
year |
An integer or string for the year of the FARS file |
this function returns a US state map with dots representing the fatalities in a given year for a FARS file
## Not run:
fars_map_state(10, 2015)
fars_map_state(36, 2014)
fars_map_state(50, 2013)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.