Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
Plot a map with locations of accident data for given state and year.
1 | fars_map_state(state.num, year, datadir = NULL)
|
state.num |
Numeric of the US state to be plotted (must be between 1 and 50). |
year |
Numeric of the year of data to be accessed. |
datadir |
Character string of the data directory. Default is NULL, in which case the package loads the built in datasets. |
Nothing. Plots map with accident locations for state and year as function side effect.
State id's available are: 1 2 4 5 6 8 9 10 11 12 13 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 53 54 55 56
1 | fars_map_state(1, 2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.