fars_map_state: Ploting map This function uses names, generated by function...

Description Usage Arguments Value Examples

Description

Ploting map This function uses names, generated by function make_filename to (in case of existense) import .csv files by fars_read funnction. With the specified state number all accidents are plotted on the map.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Integer, that identifies state to plot observations on a map

year

A parameter which identifies the value of year, used in built file name

Value

If specified state number is not presented in initial data, function stops with the corresponding message. If there is such a state number in data, but there is no observations, nothing is plotted (with the printed message about it) . Finally, if there are observations for specified state number, they are plotted on a map.

Examples

1
2
3
4
## Not run: 
fars_map_state(1, 2011)
fars_map_state(2, 2013)
## End(Not run)

Yailama/assignment4 documentation built on May 10, 2019, midnight