Description Usage Arguments Details Value Examples
This is a function that creates a graphical map of highway accidents given a state number and year
1 | fars_map_state(state.num, year)
|
state.num |
a string or integer representing the position of a state in alphabetical order. One of the states in the R standard dataset state.names |
year |
a string or integer representing the year for which to load highway accidents. |
If a accident file with standard naming convention is not in currect working, a "invalid year" warning is generated. If state.num is not between 0 and 50, a "invalid STATE number" error is thrown. If a particular state had 0 accident records for a given year, a "invalid STATE number" error is thrown.
a graphical map with points for individual highway accidents
1 2 3 4 5 | ## Not run:
fars_map_state(1,1990)
fars_map_state("1","1990")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.