plotShiny {hyd1d} | R Documentation |
Plot a WaterLevelDataFrame in Shiny
Description
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 |
|
add_flys_labels |
|
add_weighting |
|
... |
further graphical parameters passed to
|
Value
A plot of a WaterLevelDataFrame.
References
Bundesanstalt für Gewässerkunde (2016). “FLYS – Flusshydrologischer Webdienst.” https://www.bafg.de/DE/5_Informiert/1_Portale_Dienste/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)