Description Usage Arguments Value Examples
View source: R/fars_functions.R
fars_map_state return a point graphic representing the distribution of accidents for a given state number and for a given year. This function calls make_filename, fars_read.
1 | fars_map_state(state.num, year)
|
state.num |
Interger which represents a state |
year |
Integer which represents a target year |
If the inputs are correct, it returns graphic points where graphic represents the state and each point represent a accident. If state number is unknown in the file, it returns a error like "invalid STATE number : state.num". If there is no accident this year in this state, return "no accidents to plot" and NULL value
1 | fars_map_state(1, 2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.