p_discalib {htsr}R Documentation

Plot calibration curves water levels vs discharges

Description

Experimental function, which is for instance limited to only two calibration curves on the same plot.

The function plot the discharges measurements and the corresponding calibration curves starting.

Only the "active" discharge measurements are plotted. The parameter plotdism displays them or not.

One can zoom on a subpart of the plot using the limit values on the x and y axis.

The savefig (default = FALSE by default) parameter allows to save the result i a png, jpg or pdf file, according to the extension of fout.

Usage

p_discalib(
  fsq,
  sta,
  sen = "IH",
  plotcalib = TRUE,
  plotdism = TRUE,
  title = "Title",
  savefig = FALSE,
  width = 8,
  height = 6,
  fout = "plot.png",
  limx = FALSE,
  limy = FALSE,
  xinf = NA,
  xsup = NA,
  yinf = NA,
  ysup = NA
)

Arguments

fsq

Data base file name

sta

Station Id.

sen

Sensor Id. (default = "IH")

plotcalib

Plot calibrations TRUE (default) / FALSE

plotdism

Plot discharge measurements TRUE (default) / FALSE

title

Plot title (default: Title)

savefig

Save plot in a png file TRUE (default) / FALSE

width

Plot width (x 100 pixels) (default = 8)

height

Plot height (x 100 pixels) (default = 6)

fout

Plot file name (default = "plot.png")

limx

Limit x axis TRUE / FALSE (default)

limy

Limit y axis TRUE / FALSE (default)

xinf

Low value for x (default = NA)

xsup

High value for x (default = NA)

yinf

Low value for y (default = NA)

ysup

High value for y (default = NA)

Author(s)

P. Chevallier - Sep 2017 - Dec 2020


[Package htsr version 2.1.5 Index]