Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
The function plot a map of a US state with the coordinates of the accidents in a year
1 | fars_map_state(state.num, year)
|
state.num |
A number of a US state (number with 2 digits) |
year |
A year (number with 4 digits) |
The function stopped with the message invalid STATE number: ", <state.num>)" if no record with the state number in the data frame
The function generate the message "no accidents to plot" and returns the invisible value NULL if there is not any accident in the selected data
none
1 2 3 | stateno <- 1
yyyy <- 2015
fars_map_state( state.num=stateno, year=yyyy )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.