Skip to contents

This convenience function enables the easy visualisation of interpolated water levels stored as WaterLevelDataFrame using the R package shiny. The results of functions like waterLevel and waterLevelPegelonline can be plotted interactively so that the computation process itself becomes visible.

Usage

plotShiny(
  wldf,
  add_flys = TRUE,
  add_flys_labels = TRUE,
  add_weighting = TRUE,
  ...
)

Arguments

wldf

an object of class WaterLevelDataFrame.

add_flys

logical determining whether the used FLYS3 water levels should be plotted.

add_flys_labels

logical determining whether the used FLYS3 water levels should be labelled.

add_weighting

logical determining whether the weighting of gauging data at the gauging stations should be labelled.

...

further graphical parameters passed to plot.default.

Value

A plot of a WaterLevelDataFrame.

References

Bundesanstalt für Gewässerkunde (2016). “FLYS – Flusshydrologischer Webdienst.” http://www.bafg.de/DE/08_Ref/M2/03_Fliessgewmod/01_FLYS/flys_node.html.

Examples

wldf <- WaterLevelDataFrame(river   = "Elbe",
                            time    = as.POSIXct("2016-12-21"),
                            station = seq(257, 262, 0.1))
wldf <- waterLevel(wldf, shiny = TRUE)
plotShiny(wldf, TRUE, TRUE, TRUE)