fars_map_state: fars_map_state

Description Usage Arguments Value Note Examples

Description

Function fars_map_state plots the locations of accidents of a state in a specific year by longtitude and latitude.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

an indentified number of state.

year

a year corresponding to the data

Value

Function fars_map_state returns a graphic plots the locations of accidents within a state in a year, by LONGITU and LATITUDE.

Note

If state.num is not integer, it would be transformed to as.integer. If state.num does not exist in the data, it would be reported. If the location of a accident is NA, it would not be plotted in the map

If year is not integer, it would be transfered to as.integer.

Examples

1
2
## Not run: fars_map_state(1,2015)
## Not run: fars_map_state(2, 2016)

maianhdang/fars documentation built on May 20, 2019, 7:57 a.m.