fars_map_state: Draw state map of the accidents in a year

Description Usage Arguments Value Examples

View source: R/fars_fctn.R

Description

This is a function that draws the locations of the accidents in the specified state in the specified year.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A numeric variable specifies the state of interest by number.

year

a numeric variable specifies the year of interest.

Value

This function prints state map of the accidents in a year. If the state doesn't exist then prints an error message. If there were no accidents in the state and year specified, then prints "no accidents to plot".

Examples

1
fars_map_state(49, 2013)

jystatistics/fars documentation built on May 27, 2019, 3:31 p.m.