Description Usage Arguments Value Examples
Ploting map This function uses names, generated by function make_filename to (in case of existense) import .csv files by fars_read funnction. With the specified state number all accidents are plotted on the map.
1 | fars_map_state(state.num, year)
|
state.num |
Integer, that identifies state to plot observations on a map |
year |
A parameter which identifies the value of year, used in built file name |
If specified state number is not presented in initial data, function stops with the corresponding message. If there is such a state number in data, but there is no observations, nothing is plotted (with the printed message about it) . Finally, if there are observations for specified state number, they are plotted on a map.
1 2 3 4 | ## Not run:
fars_map_state(1, 2011)
fars_map_state(2, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.