Description Usage Arguments Value Note Examples
This is a function that takes a state number and a year and plots accidents on the states's map
1 | fars_map_state(state.num, year)
|
state.num |
a state in numeric format |
year |
a year in numeric format or a list of such years |
this function returns a map on the graphical device, a message "no accidents to plot", or a message saying that the provided state number is invalid.
requires the package maps to be loaded, otherwise produces an error. For some states, the function fails with the message "nothing to draw: all regions out of bounds", e.g. for state.num = 2.
1 2 3 | ## Not run:
fars_map_state(6, 2015)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.