The function plots the map of a specified state (“state.num“) with all its accident locations of a specified “year“. Invalid “state.num“ will throw an error. Nothing will be plotted or returned if a valid state does not have any observations.
A numeric or integer specifying the number for which the is to be plotted.
A numeric, integer, character or factor that should specify the year. If multiple filenames are to be provided, input needs to be provided as vector.
A plot of the state map for the specified state with all accident locations.
1 2 3 4
## Not run: fars_map_state(34, 2013) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.