fars_map_state: Plotting fatal injuries

Description Usage Arguments Value Examples

View source: R/fars_data.R

Description

Plotting fatal injuries by defing a state number and a year. make_filename and fars_read are used to read the files.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A numeric value defining the number wanted to be analysed. Possible entries are 1 to 56

year

A integer value defining the corresponding year

Value

Returning a plot which shows the accidents as points in a state map. If the 'state.num' is invalid an error returns. If there a no accidents there will be no plot but a message.

Examples

1
2
fars_map_state(1, 2013)
fars_map_state(30, 2013)

FlorianHandke/coursera_building_r_packages documentation built on July 15, 2020, 12:54 a.m.