Description Usage Arguments Value
This is a simple function that allows us to show accidents by exact location in a state within a year on a map. If there are no accidents for a state in a year, then a message "no accidents to plot" would vbe shown. The "state.num" should be valid otherwise the function would stop and show the message "invalid STATE number: 'state.num'".
1 | fars_map_state(state.num, year)
|
state.num |
The state number for which we want to plot accidents on the map. |
year |
The year for which we want to look at accidents on the map. |
A map with accidents plotted on the map for the selected year and selected state number.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.