Description Usage Arguments Examples
Returns scatter plot for 2 data elements for years of interest. Option to narrow down data geographically
1 2 3 | compare_two_elements(w.use, data.elements.x.y, years, area.column,
areas = NA, legend = FALSE, c.palette = c("#999999", "#E69F00",
"#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7"))
|
w.use |
dataframe, the water use data |
data.elements.x.y |
chr, 2-element vector of data elements to be plotted |
years |
int, vector specifying the years to be plotted (1 plot per year) |
area.column |
chr, defines which column to use to specify area |
areas |
chr, codes indicating HUCs, counties, states, aquifers, etc. |
legend |
is a logical function to include list of counties in a legend if manageable, default is FALSE |
c.palette |
color palette to use for points |
1 2 3 4 5 6 7 8 | w.use <- wUseSample
data.elements.x.y <- c("TP.TotPop", "PS.WSWFr")
areas <- "10" # NA uses all areas
area.column <- "STATECODE"
years <- c(2000, 2005, 2010)
compare_two_elements(w.use, data.elements.x.y, years, area.column, areas)
compare_two_elements(w.use, data.elements.x.y, years, area.column)
compare_two_elements(w.use, data.elements.x.y, "2010", area.column)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.