Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

HydroPlot

Hydrological plot of concurrent discharge and precipitation


Description

Plots concurrent precipitation and discharge with precipitation along the top and discharge along the bottom

Usage

HydroPlot(
  x,
  Title = "Concurrent Rainfall & Discharge",
  from = NULL,
  to = NULL,
  adj.y = 1.5,
  plw = 1,
  qlw = 1.8
)

Arguments

x

a data.frame with three columns in the order of date (or POSIXct), precipitation, and discharge

Title

a character string. The user chosen plot title. The default is "Concurrent Rainfall & Discharge"

from

a starting time for the plot. In the form of a date or POSIXct object. The default is the first row of x

to

an end time for the plot. In the form of a date or POSIXct object. The default is the last row of x

adj.y

a numeric value to adjust the closeness of the preciptation and discharge in the plot. Default is 1.5. A lower value brings them closer and a larger value further apart

plw

a numeric value to adjust the width of the precipitation lines. Default is one. A larger value thickens them and vice versa

qlw

a numeric value to adjust the width of the discharge line. Default is 1.8. A larger value thickens them and vice versa

Value

A plot of concurrent precipitation and discharge. With the former at the top and the latter at the bottom.

Author(s)

Anthony Hammond

Examples

#Plot the Thames precipitation and discharge for the 2013 hydrological year,
#adjusting the y axis to 1.8.
HydroPlot(ThamesPQ, from = "2013-10-01", to = "2014-09-30", adj.y = 1.8)

UKFE

UK Flood Estimation

v0.1.6
GPL-3
Authors
Anthony Hammond
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.