choropleth_plot: choropleth_plot

Description Usage Arguments Examples

Description

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

Usage

1
2
choropleth_plot(w.use, data.elements, year, state, norm.element = NA,
  unit.type = "county")

Arguments

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"

Examples

 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

USGS-R/wateRuse documentation built on May 9, 2019, 9:35 p.m.