Description Usage Arguments Value Note Examples
This function creates a plot with all incidents in specific US state (defined by state.num)
per indicaed year. The year should correspond to the recorded analysis from US
National Highway Traffic Safety Administration's Fatality Analysis Reporting System.
1 | fars_map_state(state.num, year)
|
state.num |
A numeric or integer value of US state as defined in the FARS data. |
year |
A numeric or integer value for the year of accident record. |
This function returns a plot with the accidents on US map. The accidents are selected
based on the input argument state.num and year.
This function will give error if the file with indicated argument year is not
located in the working directory. It also gives error if the state.num is non-numeric
or non-integer value or does not correspond to any US state as defined in the FARS data.
1 2 3 4 | ## Not run:
fars_map_state(1, 2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.