fars_map_state: fars_map_state

Description Usage Arguments Value Note Examples

View source: R/documents.R

Description

fars_map_state returns a plot of the coordinates of each fatal collision by the state and year in which they occured

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

An integer value which identifies a state in the FARS dataset

year

An integer value which for one of the years in the FARS dataset

Value

A plot of the states map with the coordinates of each fatality that year in that state plotted as a point

Note

if the state number isnt included in the dataset STATE column, it returns an error

Examples

1
2
3
library(mapdata)
fars_map_state(12, 2014)
fars_map_state(36, 2014)

Centurione/FARS_Package documentation built on Dec. 30, 2019, 6:01 p.m.