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.
A number representing state number.
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: ", '
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.