Description Usage Arguments Examples
Returns choropleth plot of data element of interest for year of interest Currently written to work with counties and hucs only Only works with one data element and year as currently written
1 2 | choropleth_plot(w.use, data.elements, year, state, norm.element = NA,
unit.type = "county")
|
w.use |
dataframe, the water use data |
data.elements |
chr, data element to be plotted |
year |
int, the year of interest to be mapped (defines historical basis for counties) |
state |
character name of state |
norm.element |
chr, data element to be used for normalizing data.elements |
unit.type |
chr, type of unit to be mapped; acceptable options are "county", "huc", or "aquifer" |
1 2 3 4 5 6 7 8 9 10 | w.use <- wUseSample
data.elements <- "PS.WFrTo"
norm.element <- "PS.TOPop"
year <- 2010
state <- "Delaware"
ch.plot <- choropleth_plot(w.use, data.elements, year, state, norm.element)
ch.plot
norm.element <- NA
ch.plot <- choropleth_plot(w.use, data.elements, year, state, norm.element)
ch.plot
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.