fars_map_state: fars_map_state

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

Generate a plot of the geographical distribution of accidents for a selected US state for a given year

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

an integer between 1 and 56 indicating the index of the US state (or district) to be plotted. An error message is raised if an invalid state index is specified.

year

integer, or convertible to integer containing the year for which to plot the accident dataset. An error message is created if there are no data available for that year

Value

Plot of a selected US state with the geographical location of every accident for a given year superimposed

Examples

1
fars_map_state(1, 2013)

SimonDavenport/R-Package-Demo documentation built on June 20, 2020, 3:24 p.m.