fars_map_state: Plot accident locations on map

Description Usage Arguments Value Examples

Description

Read fars data from file in current working directory and plot accident location for given state during the given year, within a fixed maximum threshold for longitude (900) and latitude (90). Throws error if invalid values are provided for _year_ and _state_.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

State Id. This parameter isn't initialisied by default. Handles integers, floats as well as strings.

year

Year (YYYY). This parameter isn't initialisied by default. Handles integers, floats as well as strings.

Value

map plot with rectangular markers for accident locations. Returns message if no accidents are available to be plotted.

Examples

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

## End(Not run)

debajyoti7/coursera_Rpackage_final documentation built on May 15, 2019, 1:53 a.m.