qwtsPlot: Parameter timeseries plot

Description Usage Arguments Examples

View source: R/qwtsPlot.R

Description

Takes output data object from readNWISodbc and prints a plot of parameter vs time.

Usage

1
2
3
4
qwtsPlot(qw.data, site.selection, plotparm, new.threshold = 60 * 60 * 24
  * 30, show.q = FALSE, show.smooth = FALSE, highlightrecords = " ",
  facet = "multisite", scales = "fixed", wySymbol = FALSE,
  labelDQI = FALSE, printPlot = TRUE)

Arguments

qw.data

A qw.data object generated from readNWISodbc

site.selection

A character vector of site IDs to plot

plotparm

A character vector of parameters to plot

new.threshold

The threshold value in seconds from current system time for "new" data.

show.q

Logical to plot instantaneous hydrograph

show.smooth

Logical to add a loess smooth to plot

highlightrecords

A character vector of record numbers to highlight in plot

facet

Character string of either "multisite" for plotting all sites on one plot or "Facet" for plotting sites on individual plots

scales

Character string to define y axis on faceted plots. Options are "free","fixed","free_x", or "free_y"

wySymbol

Make current water-year highlighted.

labelDQI

Logical. Should points be labeled with DQI code.

printPlot

Logical. Prints plot to graphics device if TRUE

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data("exampleData",package="WQReview")
qwtsPlot(qw.data = qw.data,
                       site.selection = "06733000",
                       plotparm = "00915",
                       new.threshold = 60*60*24*30,
                       show.q = FALSE,
                       show.smooth = FALSE,
                       highlightrecords = " ",
                       facet = "multisite",
                       scales="fixed",
                       wySymbol = FALSE,
                       labelDQI = FALSE,
                       printPlot = TRUE)

USGS-R/WQ-Review documentation built on Nov. 12, 2019, 9:51 a.m.