Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
This function defines the file name with make_filename, and reads it with fars_read. Then, extract the rows when the state label is the given state number. It removes the data for the longitude more than 900 and the latitude more than 90 since they would be false data. Finally it visualize data on a plot.
1 | fars_map_state(state.num, year)
|
state.num |
The numeric input for state number to filter data |
year |
The numeric input for year |
The plot of the filtered data
It runs into a warning if there is no data for the defined
1 2 3 4 | ## Not run:
fars_map_state(1,2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.