fars_map_state: Map data by state

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

Plot a map with locations of accident data for given state and year.

Usage

1
fars_map_state(state.num, year, datadir = NULL)

Arguments

state.num

Numeric of the US state to be plotted (must be between 1 and 50).

year

Numeric of the year of data to be accessed.

datadir

Character string of the data directory. Default is NULL, in which case the package loads the built in datasets.

Value

Nothing. Plots map with accident locations for state and year as function side effect.

Note

State id's available are: 1 2 4 5 6 8 9 10 11 12 13 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 53 54 55 56

Examples

1
fars_map_state(1, 2013)

kamenbliznashki/examplepackage documentation built on Dec. 9, 2019, 12:16 a.m.