Description Usage Arguments Value Examples
View source: R/fars_function.R
fars_map_state A funtion that maps the location of the accident during a specific year in one or more states. Returns error if state number is not present or year is incorrect. If there are no accidents (hopefully) it returns a message 'No accident to plot'
| 1 | fars_map_state(state.num, year)
 | 
| state.num | A character or numeric containing the number state to map (coerced to integer in the function). | 
| year | A character or numeric element containing the year to summirise. | 
returns map with the accident as points.
| 1 2 3 4 5 | ## Not run: 
fars_map_state(1,2014)
fars_map_state('20','2014')
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.