Description Usage Arguments Value Note See Also Examples
View source: R/fars_functions.R
This function takes a numerical vector of the state and year when the accident occurred and shows the location where traffic accidents occurred Data should be in .csv.bz2
1 | fars_map_state(state.num, year)
|
state.num |
A numerical vector of a particular state in the USA. |
year |
A numerical vector of a year. |
A plot of the map of the state with points where of the accidents occurred
If state number does not exist in file will generate an error If no records for state exist will write message and return an a invisible(NULL)
1 2 3 4 5 | ## Not run:
fars_map_state(4 , 2014)
fars_map_state('8' , '2015')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.