fars_map_state: Draws the accidents on the US map

Description Usage Arguments Value Note Examples

Description

This function creates a plot with all incidents in specific US state (defined by state.num) per indicaed year. The year should correspond to the recorded analysis from US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A numeric or integer value of US state as defined in the FARS data.

year

A numeric or integer value for the year of accident record.

Value

This function returns a plot with the accidents on US map. The accidents are selected based on the input argument state.num and year.

Note

This function will give error if the file with indicated argument year is not located in the working directory. It also gives error if the state.num is non-numeric or non-integer value or does not correspond to any US state as defined in the FARS data.

Examples

1
fars_map_state(1, 2013)

androsova/fars documentation built on May 10, 2019, 11:44 a.m.