This function takes year and state.num inputs and plots a map of the selected state with all accidents from that state and year.
a numeric vector of length 1
A numeric vector of length 1
a plot object
This function will throw an error if the state number given is not an actual state number.
This function will return a NULL object if there are no accidents to plot.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.