Description Usage Arguments Value Examples
This function helps to read dataset in working directory and plot the state according to state number. It aimed to plot using datasets from US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.
1 | fars_map_state(state.num, year)
|
state.num |
A number representing state number. |
year |
A number for which year's datasets should be readed |
This function returns a plot of state from loaded dataset.
If input 'state.num
' is not avaliable in the dataset it will
throw an error looking like ""invalid STATE number: ", 'state.num
'.
If the 'year
' input is not an integer or a class can not
coerced to integer then it would not read the appropriarte file and
would give an error.
1 2 3 4 | ## Not run:
fars_map_state(50,2014)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.