fars_map_state: Map the FARS data for a state in a given year

Description Usage Arguments Details Value Examples

Description

This functions map the accident data for a state-year combination

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integer representing the state ID

year

A year

Details

If the state.num is invalid an error will be thrown specifying this If there is no data associated with the state, a message "no accidents to plot" will be shown, a invisible NULL is returned If there is some data, points representing where the accidents occur is shown on a map

Value

A map object or NULL if there is no accidents to report

Examples

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

## End(Not run)

learner42/CourseraRpackagesFinal documentation built on May 17, 2019, 12:14 p.m.