fars_map_state: Plot the accidents in states in the fars data.

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function plots the state and the point where the accidents occured in a specific year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

a number which represent a state.

year

a number which represent a year.

Value

It returns a plot of state with points where the accidents occured in a specific year.

Note

It plots the accidents which occured in latitude <= 90 and longitude <= 900. If the argument state.num is beyond the number of states in the fars data then it will return that "invalid STATE number". If there is no accident during a specific year in aspecific state then it returns "no accidents to plot".

Examples

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

## End(Not run)

knkanna8/Kanna documentation built on May 20, 2019, 12:53 p.m.