fars_map_state: plot the accident on the map

Description Usage Arguments Value

View source: R/fars_functions.R

Description

The function filters for state.num and year given in the input. if the number of accident is zero for given year and state it returns "no accident to plot". The function plot the map with accident as point on it.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

a list of integers or character string of numbers for desired states.

year

a list of integer or character string of numbers for desired years to be read from the disk.

Value

a map of accidents.


mmottahedi/coursera documentation built on May 23, 2019, 5:05 a.m.