Description Usage Arguments Value Examples
This is a simple function that reads csv file for particular year. Filter data for particular state. In case if state does not exist appropriate message will be shown. If there is no accidents in particular state within specified year appropriate message will be shown. Function plots state shape and marks accidents as a dots.
1 | fars_map_state(state.num, year)
|
state.num |
An integer or character string that can be converted to integer meaning state |
year |
An integer or character string that can be converted to integer meaning year |
This function returns a map with state shape and marked accidents.
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.