fars_map_state: Map distribution of accidents for a given state and year

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function can be used to draw a map of a state, with a dot for each registered accident in a given year. The state is selected via the state.num argument, the year through the year aergument.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integer between 1 and 56 representing the state number

year

An integer representing an year

Value

This function plots a map of a state with accident data represented by point. It does not return anything. Not inputing an integer in state.num will result in an error.

Examples

1
2
3
4
## Not run: 
fars_map_state(1,2015)

## End(Not run)

naelvis/fars documentation built on July 27, 2020, 7:30 a.m.