R package with useful funtions for Hydrological Data Science
hydrotools
package is not in CRAN, but cand be installed by devtools
package
functions.
# install.packages(devtools)
# from GitLab (main repository)
devtools::install_gitlab('gavg712/hydroutils')
# from GitHub (alternative repository)
devtools::install_github('gavg712/hydroutils')
The function hydrograph
will returna ggplot object. That can be manipulated
following the logic of ggplot2
package:
library(hydroutils)
library(ggplot2)
# load data
data("soil_moisture")
soil_moisture %>%
hydrograph(
time = timestamp,
runoff = runoff,
rain = rain,
agg.time_unit = "3 hour",
agg.window = 12
) +
labs(x = "Timestamp", title = "Hydrograph",
subtitle = "Included running mean rainfall") +
theme(legend.position = "bottom")
Any issue found? Please let me know. Report bus, issues, etc. at:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.