Description Usage Arguments Value Examples
returns subset of WUSE data elements for plotting based on county state codes
1 | subset_wuse(w.use, data.elements, area.column, areas = NA)
|
w.use |
dataframe, the water use data |
data.elements |
chr, vector of data elements to be plotted (1 plot per element) |
area.column |
character that defines which column to use to specify area |
areas |
chr, codes for state-county ('NA' uses all areas) |
w.use.sub dataframe, a subset of water use data from user specifications
1 2 3 4 5 6 | w.use <- wUseSample
data.elements <- c("PS.TOPop", "PS.SWPop")
areas <- "10" # NA uses all areas
area.column <- "STATECODE"
w.use.sub <- subset_wuse(w.use, data.elements,area.column,areas)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.