Description Usage Arguments Value Examples
View source: R/fars_functions.R
Function fars_map_state
plots the contour of the state
in question and points with accident locations for a given year.
1 | fars_map_state(state.num, year)
|
state.num |
State number, a value between 1 and 56 |
year |
Four-digit year, as integer or as a string (i.e. 2001, "2001"). |
Plot of a contour of the state in question with geographical locations of accidents (as dots) for a given year.
If the requested year input is not present in available data, the function stops and returns an error: "file 'filename_YEAR.csv.bz2' does not exist".
If the requested state number is not present in data, the function stops and returns an error: "invalid STATE number: number"
1 2 3 4 5 | ## Not run:
fars_map_state(1,2013)
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.