fars_map_state: Plots the accidents on a US state map

Description Usage Arguments Value

View source: R/fars_functions.R

Description

This function requires a state number and year (numeric -or integer- both), and plots the accidents in a map. The state number must be exist in FARS dataset (error if not) and data file must exist too.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The number of a state in the US as used in the FARS data sets. Must be numeric or integer.

year

The year of analysis (numeric or integer)

Value

Returns a plot of the accidents based on the state.num and year inputs. Error if not exists.


A0791298/CourseraPackage documentation built on Jan. 8, 2020, 2:45 a.m.