boxplot_wu: boxplot_wu

Description Usage Arguments Examples

Description

boxplot_wu

Usage

1
2
boxplot_wu(w.use, data.elements, area.column, sub.area = "COUNTYNAME",
  areas = NA, plot.notch = FALSE, years = NA, log = FALSE)

Arguments

w.use

is a subset of the datafile wUseSample that includes all areas in all data elements for state

data.elements

character name of data element within available categories by year for state

area.column

character that defines which column to use to specify area

sub.area

is the area (county, huc) column name. This is most useful for the app

areas

is a geographical area as defined in your datafile such as county, HUC, or aquifer

plot.notch

is a logical function to show boxplot as optionally notched or not

years

vector of integers specifying range of years to graph. Defaults to NA which shows all years in dataset.

log

= TRUE or FALSE allows user to set log scale, default is FALSE

Examples

1
2
3
4
5
6
7
w.use <- wUseSample
areas <- "15"
area.column = "STATECODE"
data.elements <- c("PS.GWPop","TP.TotPop")
boxplot_wu(w.use, data.elements, area.column = area.column,areas = areas)
boxplot_wu(w.use, data.elements, area.column, log=TRUE)
boxplot_wu(w.use, data.elements, area.column, years = c(1995, 2005))

USGS-R/AWUDS documentation built on May 9, 2019, 6:05 p.m.