basinWaterBalancePlot: Plots basin precipitation cumulative water balance.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/basinWaterBalancePlot.R

Description

As with the basinRunoffPlot, the cumulative values of precipitation, evaporation and runoff (and optionally, delta storage) are computed by the function, rather than by using the MESH variables. This allows the plot to be used on a sub-set of the basin output data.

Usage

1
basinWaterBalancePlot(basinWaterBalance, accumulate_delta_storage = TRUE)

Arguments

basinWaterBalance

Required. Data frame to be plotted. As read in by read_MESH_OutputTimeseries_csv. Note that because the value of DTSG (delta storage) can be negative, you need to set a threshold value much smaller than zero when you read in the values.

accumulate_delta_storage

Optional. If TRUE (the default), the delta storage is accumulated from the beginning of the data set. If FALSE, the delta storage values in the file are not accumulated as they are assumed to be cumualtive values.

Value

Returns a ggplot2 line plot of the variable values (mm).

Author(s)

Kevin Shook

See Also

read_MESH_OutputTimeseries_csv basinStoragePlot basinSoilWaterIcePlot

Examples

1
2
3
4
5
## Not run: 
waterBalance <- read_MESH_OutputTimeseries_csv("Basin_average_water_balance.csv", 
missingValueThreshold = -1e6)
p <- basinWaterBalancePlot(waterBalance)
## End(Not run)

CentreForHydrology/MESHr documentation built on Jan. 11, 2021, 8:34 p.m.