Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function returns the location of the accidents for a specified state and year.
1 | fars_map_state(state.num, year)
|
state.num |
The state number, numeric integer value. |
year |
A year, numeric value in the form yyyy of the accidents. |
This function returns a plot of a state map with points representing the location of the accidents in the year. If the state is not a valid number or it is not found in the data then the function stops and returns an error with the message "invalid STATE number: ". If there is no accident for the specified state and year then the function returns the message "no accidents to plot".
1 2 3 4 | ## Not run:
fars_map_state(40, 2014)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.