Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
Given a state number which matches with state numbers in FARS data, this function draws map of the state overlaid with dots representing accidents.
1 | fars_map_state(state.num, year, fname_transform = identity)
|
state.num |
state number (matching with state number in FARS data) |
year |
year to plot accidents for |
fname_transform |
Read fars_read_years documentation to find out. |
Function throws error if state number is invalid, and does not plot anything if there are no accidents to plot.
draws a plot if inputs are valid, otherwise returns without plotting
1 2 3 4 | ## Not run:
fars_map_state(1, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.