Description Usage Arguments Warning Examples
View source: R/fars_functions.R
It plots, in a map, the car fatalities occurred in a given US state and in a specific year using the data reported by the US National Highway Traffic Safety Administration in the Fatality Analysis Reporting System.
1 | fars_map_state(state.num, year)
|
state.num |
An integer value corresponding to a US state. |
year |
A numeric vector representing the years in a time period. |
If the state.num
parameter is not a valid state number or the
information specified in the year
parameter does not exist, the
function will throw an error.
1 2 3 4 5 | # We set the working directory where the compressed files are stored within
# the package.
WD <- setwd(system.file("extdata", package = "rfars"))
fars_map_state(12, 2015)
setwd(WD)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.