The function takes a state number and year as input and plots the locations of the accidents on a map. An invalid state number or year results in an error.
The number of a state in the US as per the FARS data
sets. Coerced to
The year for which data is to be plotted. Coerced to
A plot of the accidents for the
year provided. Returns
NULL for invalid input
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.