Description Usage Arguments Details Value Examples
This function plots the accidents of a given year and state to the state's map. It uses fars_read and make_filename functions included in this package. It also imports numerous functions from dplyr, maps and graphics packages for its' function
1 | fars_map_state(state.num, year)
|
state.num |
The state's number as an integer |
year |
The desired year in YYYY format as an integer |
This function requires a valid state number and a year that is included in FARS dataset to operate. The working directory needs to include .csv.bz2 files included in the data folder of fars_data.zip file.
Function returns a map of the given state with accident reports that have valid longitude and latitute points plotted on the map.
1 2 3 4 5 6 | ## Not run:
fars_map_state(25,2014)
fars_map_state(1,2015)
fars_map_state(6,2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.