fars_map_state: Plot accidents in a state

Description Usage Arguments Examples

View source: R/fars_functions.R

Description

fars_map_state plots the accidents in a state for a given year. The state is plotted as a map and the accidents as points on the map. Throws an error if the state number does not exist in the data and NULL if the accidents are zero for the given year in the specified state.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A numeric scalar. The state number of the accidents.

year

A numeric scalar. The year of the accidents.

Examples

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

## End(Not run)

maximilian-muecke/fars documentation built on Jan. 5, 2022, 4:12 p.m.