plot.wateres_alpha_beta: Plot of alpha and beta characteristics

View source: R/plots.R

plot.wateres_alpha_betaR Documentation

Plot of alpha and beta characteristics

Description

Plots characteristics for given reliabilities stored in a wateres_alpha_beta object, by using the ggplot2 package.

Usage

## S3 method for class 'wateres_alpha_beta'
plot(x, filename = NULL, width = 8,
  height = 6, ...)

Arguments

x

A wateres_alpha_beta object.

filename

A file name where the plot will be saved. If not specified, the plot will be printed to the current device.

width

Plot width in inches (or a unit specified by the units argument).

height

Plot height in inches (or a unit specified by the units argument).

...

Further arguments passed to the ggsave function saving the plot to a file.

Value

A ggplot object.

Examples

reser = data.frame(
    Q = c(0.078, 0.065, 0.168, 0.711, 0.154, 0.107, 0.068, 0.057, 0.07, 0.485, 0.252, 0.236,
          0.498, 0.248, 0.547, 0.197, 0.283, 0.191, 0.104, 0.067, 0.046, 0.161, 0.16, 0.094),
    DTM = seq(as.Date("2000-01-01"), by = "months", length.out = 24))
reser = as.wateres(reser, storage = 14.4e6, area = 754e3)
alpha_beta = alpha_beta(reser)
plot(alpha_beta)

tgmwri/wateres documentation built on Feb. 13, 2024, 10:25 p.m.