Description Usage Arguments Value Depends on Examples
Draws the location of accidents in a US State for a given year
1 | fars_map_state(state.num, year)
|
state.num |
An integer that represents the state number. |
year |
a vector of integer or strings that indicated the year of interest. |
This function draws a map of the State and shows one point for each fatality that occurred in that State. Will throw an error if an invalid state number is chosen or the chosen year's data does not exist.
filter
in the dplyr
package.
map
in the maps
package.
points
in the graphics
package.
1 2 3 4 5 | ## Not run:
fars_map_state(3, 2014)
fars_map_state("3", "2014")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.