fars_map_state: Plots number of accidents as points for selected State and...

Description Usage Arguments Value Examples

Description

This function draws accident data for state and accidents are represented as points and state boundry is displayed by line. Location of accident is identified by range of Longitude and latitude but NA values are ignored to pricise points of accidents.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A charecter string or Integer of state number of USA

year

A character string or Integer of Year

Value

Plots graph displaying accidents as points for selected state and year Function will throw error incase of state number not found in dataset for selected year.

Examples

1
2
3
4
5
6
7
## Not run: 
fars_map_state(5,2015)
fars_map_state(5,"2015")
fars_map_state("5",2015)
fars_map_state("5","2015")

## End(Not run)

garvish/datascience documentation built on May 16, 2019, 5:41 p.m.