Description Usage Arguments Value Examples
View source: R/fars_functions.R
Generate a plot of the geographical distribution of accidents for a selected US state for a given year
1 | fars_map_state(state.num, year)
|
state.num |
an integer between 1 and 56 indicating the index of the US state (or district) to be plotted. An error message is raised if an invalid state index is specified. |
year |
integer, or convertible to integer containing the year for which to plot the accident dataset. An error message is created if there are no data available for that year |
Plot of a selected US state with the geographical location of every accident for a given year superimposed
1 | fars_map_state(1, 2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.