fars_map_state plots the contour of the state
in question and points with accident locations for a given year.
State number, a value between 1 and 56
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.