Description Usage Arguments Details Value Examples
This is a function that creates a polygon map and plots the longitude and langitude coordinates of fatal injuries in a specified state and year in a map. It reads a numeric value representing the state and a year value. It reads the csv file in the working directory that holds the longitude and langitude of the incidents in the particular year. The funtion filters the incidents ny the given state
1 | fars_map_state(state.num, year)
|
state.num |
A numerical represenatiion of the state |
year |
The year value ot plot the fatal injuries |
In the case of wrong state numerical representation, or zero fatal injuries for that state in the particular year, or there is no csv file in the current working directory under the specified year value, an error message is provided
A polygon map and plotted points
1 2 3 4 5 | ## Not run:
fars_map_state(10, 2014)
fars_map_state(1, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.