Description Usage Arguments Value Examples
This function displays a plot with a state map including the accidents location by year. The functions make_filename and fars_read contribute to this function. If the state number is invalid the function shows an error message "invalid STATE number: ". If there are no accidents in the speicific state in the specified year the function shows warning message "no accidents to plot".
1 | fars_map_state(state.num, year)
|
state.num |
an integer with the State Code |
year |
a string or an integer |
This function returns a map with the accidents in the speicified state at the specified year. It returns NULL and warning message if no accidents recorded and returns warning message if the state number is invalid.
1 2 3 4 | ## Not run:
fars_map_state(42, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.