Description Usage Arguments Value
View source: R/fars_functions.R
Create a map for the location of accidents within a state for a given year
1 | fars_map_state(state.num, year)
|
state.num |
(integer) the number of the ID of the state to analyse. This function depends on the dplyr::filter, maps::map functions. bind_rows, group_by, and summarize. It also depends on tidyr::spread. |
year |
(integer or character) the year identifying the file whose name to construct. |
NULL. Function has side effect of plotting a map.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.