fars_map_state: Visualize Accidents within a state of the US on the map.

Description Usage Arguments Value

Description

This is a simple function that allows us to show accidents by exact location in a state within a year on a map. If there are no accidents for a state in a year, then a message "no accidents to plot" would vbe shown. The "state.num" should be valid otherwise the function would stop and show the message "invalid STATE number: 'state.num'".

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The state number for which we want to plot accidents on the map.

year

The year for which we want to look at accidents on the map.

Value

A map with accidents plotted on the map for the selected year and selected state number.


Byronxy/FARSr documentation built on May 23, 2019, 9:37 a.m.