Description Usage Arguments Value Examples
View source: R/fars_functions.R
Plot accident for given state in a given year This function plots the accident in a given state for a given year.
1 | fars_map_state(state.num, year)
|
state.num |
- numeric |
year |
- numeric |
1. plotted map of accident for the year 2. "invalid state" if state number not found 3. "No accident to plot " if for a given year and given state no accident occurred.
1 2 | setwd(system.file("extdata", package = "FarsProject"))
fars_map_state(050,2014)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.