Description Usage Value Note Examples
This function maps the point locations of accidents for a given state (state.num
) and year
.
1 | fars_map_state(state.num, year)
|
This function returns a plot with the state boundaries and the point locations of accidents.
This functions throws an error if a file for a given year does not exist or if a state is not contained in the dataset.
1 2 3 4 5 6 | ## Not run:
setwd(system.file("extdata", package = "fars"))
fars_map_state(24, 2014)
fars_map_state(39, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.