Description Usage Arguments Value Note Examples
fars_map_state
returns a plot of the coordinates of each fatal collision by the
state and year in which they occured
1 | fars_map_state(state.num, year)
|
state.num |
An integer value which identifies a state in the FARS dataset |
year |
An integer value which for one of the years in the FARS dataset |
A plot of the states map with the coordinates of each fatality that year in that state plotted as a point
if the state number isnt included in the dataset STATE column, it returns an error
1 2 3 | library(mapdata)
fars_map_state(12, 2014)
fars_map_state(36, 2014)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.