fars_map_state: Plot accidents by state and year

Description Usage Arguments Details Value

View source: R/fars.R

Description

plot accidents by lattitude and longitude for state and year inputed by users.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

the numbers stand for state

year

a numeric value

Details

the input state.num should be in the STATE column of data, otherwise error message "invalid STATE number" will be given; If there is no accident for the input state.number and year, a message will state "no accidents to plot".

Value

A map plot for input state and year will be produced.


ynren1020/fars documentation built on July 16, 2020, 1:56 a.m.