Description Usage Arguments Value Examples
take state.num and year as input, extract longitude and latitude accordingly, then plot the state on the map. Error will occur if state number is invalid.
1 | fars_map_state(state.num, year)
|
state.num |
state number according to which state is selected |
year |
The year to be selected. This can be either string or numberic |
a graph with each selected observation ploted on the map
1 2 3 | library(maps)
setwd(paste0(.libPaths()[1],"/Fas"))
fars_map_state(1, 2014)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.