fars_map_state: Using data from FARS it creates a map of an USA state which...

Description Usage Arguments Value Examples

View source: R/fars_functions.r

Description

fars_data.zip (FARS dataset) represents the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes. This data are from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integer number giving the id of the state

year

An integer number giving the year

Value

Draw a map (of state.num) with the positions (longitude and latitude) of accidents from year.

If the state.num is invalid stop execution and print a message.

If there aren't accidents in year a message will be print.

Examples

1
2
3
4
5
6
fars_map_state(24, 2014)
fars_map_state(1, 2015)
## Not run: 
fars_map_state(7,2013)

## End(Not run)

constantin345/minifars documentation built on May 7, 2019, 1:29 p.m.