Description Usage Arguments Value
Map the data points on a map over the selected state
This function maps the state given by the user (using the state
) and the datapoints
for the year given by the user (using the year
).
The function uses the map and points functions from the packages map and graphics, respectively.
The function uses the function make_filename to create a string of the filename and parses this
string to the fars_read function in order to read the data from the file.
The function will result in an error if either the state number is not given as an integer
or an incorrect state number is given (using the state
)
1 | fars_map_state(state, year)
|
state |
Integer specifying for what state data is to be displayed |
year |
An integer specifying for what year data is to be displayed |
This function returns a map of the given state and the datapoints for that state.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.