fars_map_state: Plot State map

Description Usage Arguments Details Value Examples

Description

Function for plotting an states accidentes map for given a state & year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

an integer value, describing the the stateid of the data set which is needed. The valid states which can be used are between 1 - 56. However,there no data about stats id's: 3, 7, 14, 43 & 52.

year

an integer value, describing the year of the data set which is needed. The valid years which can be used are: 2013, 2014 & 2015.

Details

This function using the packages: readr, dplyr, maps.

If an invalid year will be supplied to the function then show an error message.

If an invalid state id will be supplid the the function show tn error message.

The bounderies of longitud & latitude are below 900 & 90 respectivly.

Value

a ggplot object

Examples

1
## Not run: fars_map_state(1,2013)

AlphaIgor/Test documentation built on May 19, 2019, 10:47 p.m.