fars_map_state: Draw a map with FARS data for a given US state and year

Description Usage Arguments Details Examples

View source: R/fars_functions.R

Description

For a given year and US state this function plots a map with the distribution of accidents regarding fatal injuries suffered in motor vehicle traffic crashes across the state using the US Fatality Analysis Reporting System data.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

integer: the number of the state from the FARS data

year

an R object. Must be an integer or a character vector of length 1 or more, containing any year

Details

The function will stop running of invalid state number was provided or no event with given conditions were found

Examples

1
fars_map_state(1, 2013)

Liddlle/exmplr documentation built on May 18, 2019, 1:34 p.m.