fars_map_state: Plot accidents on a map

Description Usage Arguments Value Note Examples

Description

Plot a state map with accidents as points. States are selected by specifing their number from data files.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

numeric, a number of a state to plot

year

numeric or character with year number

Value

NULL, this function only plots

Note

The function will return an error if there are no accidents registered in requested state and year or the state.num is invalid

Examples

1
2
3
4
fars_map_state(1, 2013)
fars_map_state(30, 2015)
# invalid state.num
fars_map_state(100, 2015)

rafal-gl/package_coursera documentation built on May 20, 2019, 5:58 p.m.