PCP_plot: Percentiles of Cumulative Precipitation

View source: R/PCP_plot.R

PCP_plotR Documentation

Percentiles of Cumulative Precipitation

Description

Generate a plot representing percentiles of cumulative precipitation, given a historic record, and criteria for selecting a year of data for comparison.

Usage

PCP_plot(
  x,
  this.year,
  this.day = NULL,
  method = "exemplar",
  q.color = "RoyalBlue",
  c.color = "firebrick",
  ...
)

Arguments

x

result from CDECquery for now, will need to generalize to other sources

this.year

a single water year, e.g. 2020

this.day

optional integer representing days since start of selected water year

method

'exemplar' or 'daily', currently 'exemplar' is the only method available

q.color

color of percentiles cumulative precipitation

c.color

color of selected year

...

additional arguments to plot

Details

This is very much a work in progress. Further examples at https://ncss-tech.github.io/AQP/sharpshootR/CDEC.html, and https://ncss-tech.github.io/AQP/sharpshootR/cumulative-PPT.html.

Value

nothing, this function is called to create graphical output

Author(s)

D.E. Beaudette

See Also

waterDayYear


ncss-tech/sharpshootR documentation built on April 9, 2024, 4:27 a.m.