Description Usage Arguments Value Note Examples
This function takes a state number and year to import and subset the corresponding csv file. Records with missing longitudinal and latitudinal data are assigned default values. A map graphic of the specified state is generated with points representing individual records mapped on top.
1 | fars_map_state(state.num, year)
|
state.num |
A numeric value corresponding to the state number |
year |
A numeric value corresponding to the csv file to be imported |
Returns a side effect map graphic of the state with all recorded accidents represented as points on the same map.
If provided state number is not found in the data frame, an error is returned. If specified subset of data has no records associated with it, a message is returned.
1 | ## Not run: fars_map_state(1, 2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.