The function return a map with data points of the number of incidents happened over over a particular year and time. It he specified character(s) are plotted, centered at the coordinates and the map is limited to the state boundaries
a numerical value that represent the state selection in the function
a numerical value that represent the year when the accidents happened
The function will return an Error saying that the State is not found if the state.num parameter is not found within the dataset The function will return an Error saying that there is no accidents at that particular years and state if the length of Data is 0
The function will return a map graphic with points to show incidents at particular state and year
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.