fars_map_state: Plot accidents for chosen state on a map

Description Usage Arguments Value Examples

Description

fars_map_state plots geographical distribution of accidents on a map of respective state chosen by user using R's base graphics system. Function stops with a message if state number is not found in a dataset or returns NULL if there are no accidents in a given state.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

state ID number

year

value for year

Value

map plot

Examples

1
2
my_state_id <- 1
fars_map_state(my_state_id, 2015)

Struya/mtrostR documentation built on May 15, 2019, 4:18 a.m.