hydroplots currently includes a single function (ctf_heatmap) to plot a raster heat map of flow and cease to flow spells (or spells below a threshold) based on daily time-series data.
To install run the following code:
# install devtools pacakge
install.packages(c("devtools"))
# install hydroplots package
devtools::install_github("nickbond/hydroplots")
# Remove the package zip after installation
unlink("hydroplots.zip")
#load library
library(hydroplots)
The code below produces the following plot for Cooper Creek, a highly ephemeral river in western Queensland, Australia. The function uses geom_raster() from the ggplot2 package. Addtional options are available (see ?ctf_heatmap for details).
library(hydrostats)
library(hydroplots)
data(Cooper)
ctf_heatmap(Cooper)
Nick Bond n.bond@griffith.edu.au
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.