Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function plots coordinates represented by latitude and longitude for a given input state and year
1 | fars_map_state(state.num, year)
|
state.num |
A numeric value representing state in FARS dataset |
year |
A numeric value of year |
This functions returns a map of the input state with accident cooridnates plotted onto the map. Latitude greator than 90 and longitude 900 is not plotted If input state is not found in dataset, error is returned with message as "invalid state number <state number>" If no accidents are present in dataset for given state, a message is returned as "no accidents to plot"
1 | tryCatch({fars_map_state(1,2013)},error=function(e){return(NULL)})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.