fars_map_state: Plots a map from accident data

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function takes state.num and year as input agruments and returns a map with the corresponding data points. If the input variable state.num is not represented in the data-set the function will return an error message.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A character or numeric vector. It specifies the STATE of the observations.

year

A character or numeric vector to specify the year to read the data from.

Value

This function plots a map with points, representing the individual accident observations. If there are no accidents for a given STATE the function returns NULL

Examples

1
2

mkaywins/farsdata documentation built on Nov. 4, 2019, 6:59 p.m.