Description Usage Arguments Value Examples
This function draws accident data for state and accidents are represented as points and state boundry is displayed by line. Location of accident is identified by range of Longitude and latitude but NA values are ignored to pricise points of accidents.
1 | fars_map_state(state.num, year)
|
state.num |
A charecter string or Integer of state number of USA |
year |
A character string or Integer of Year |
Plots graph displaying accidents as points for selected state and year Function will throw error incase of state number not found in dataset for selected year.
1 2 3 4 5 6 7 | ## Not run:
fars_map_state(5,2015)
fars_map_state(5,"2015")
fars_map_state("5",2015)
fars_map_state("5","2015")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.