plot_profile: Plot Profile Data

View source: R/plot_profile.R

plot_profileR Documentation

Plot Profile Data

Description

Plot pressure, temperature, or water-quality data for a site visit.

Usage

plot_profile(
  site_nm,
  time_dt,
  type = "head",
  replicates = FALSE,
  position = NULL,
  file = NULL,
  ...
)

Arguments

site_nm

'character' string. Local site name for a MLMS well.

time_dt

'POSIXct' or 'character' string. Estimated field visit time, the closest time in the vector of field visit start times. Note that water-quality samples may be collected up to one week after the site visit for pressure profiling.

type

'character' string. Plot type, choose "head" for hydraulic head, "temp" for fluid temperature, or a USGS 5-digit parameter code (pcode in the samples dataset). Hydraulic head is plotted by default.

replicates

'logical' flag. Whether to include replicate pressure measurements.

position

'character' string. Location used to position the legend. Choose a single keyword from the list "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right" and "center".

file

'character' string. PDF file to send plot graphics. Defaults to the active graphics window.

...

Additional arguments to be passed to the pdf function. Only relevant if the file argument is specified.

Value

Invisibly NULL

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

See Also

get_profile function is used to retrieve profile data.

Examples

site_nm <- "USGS 133"
time_dt <- "2008-08-27"
plot_profile(site_nm, time_dt, position = "topleft")

plot_profile(site_nm, time_dt, type = "temp")

plot_profile(site_nm, time_dt, type = "07000", position = "bottomright")

site_nm <- "USGS 131A"
time_dt <- "2012-10-24"
plot_profile(site_nm, time_dt)

plot_profile(site_nm, time_dt, type = "temp")

plot_profile(site_nm, time_dt, type = "07000")

file <- tempfile("test-profile-", fileext = ".pdf")
plot_profile(site_nm, time_dt, file = file, pointsize = 10)

unlink(file)

mlms documentation built on April 4, 2025, 4:43 a.m.