Description Usage Arguments Value Examples
Function that enables to obtain the statistics from .csv files from specific year and US State and plot on a map the number of acidents per geographical location It will read a group of files, select specific states, filter the imported data and plot the counts on a map using longitude and latitude
1 | fars_map_state(state.num, year)
|
state.num |
a number that the US states that we choose to analyse and plot
if the code state does not exists on the files imported the function will stop
and show the message : "invalid STATE number: ", |
year |
a number that represents the year or years of the data to import. the user can import 1 year data or create a sequence like n:m (n<=m) and the function will read the files from year n to m |
This function creates a plot using maps
1 | ## Not run: fars_map_state(state.num=10134,year=2013)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.