Description Usage Arguments Value Note Examples
Function to read data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. and plot the of observations for the given year on a png state map based on latitude and longitude of the observations.
1 | fars_map_state(state.num, year)
|
state.num |
Int vector of length 1 (Alabama = 1, Wyoming = 50, etc) |
year |
Int vector of length 1 of the year desired (2013, 2014, etc) |
A png file with the number of observations plotted on a state map
parameters 'state.num' and 'year' must each be a length 1 vector
1 2 3 4 5 | ## Not run:
fars_map_state(1,2013)
fars_map_state(12,2014)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.