R/rvn_rvh_subbasin_visnetwork_plot.R
rvn_rvh_subbasin_visnetwork_plot.Rd
Takes an rvh
object generated using rvn_rvh_read
and returns the connections information of subbasins as an interactive visNetwork graph.
rvn_rvh_subbasin_visnetwork_plot(rvh, groupBy = "Gauged")
an rvh
object, provided by rvn_rvh_read
a character referring to one of the sub-basins attributes in the rvh
p1returns visNetwork plot object
rvn_rvh_read
to import an watershed network table from an rvh
file.
See also the Raven page
## additional example from tutorial files (not run)
if (FALSE) {
path <- dirname(tempfile())
dir.create(paste(path,"/tmp",sep=""))
url<-"http://raven.uwaterloo.ca/files/RavenOstrichTutorialFiles.zip"
download.file(url,dest=paste(path,"/tmp/example.zip",sep=""))
unzip(zipfile = paste(path,"/tmp/example.zip",sep=""),
exdir = paste(path,"/tmp",sep=""))
rvh<-rvn_rvh_read(paste(path,"/tmp/Demo_C4/model/LOWRL.rvh",sep=""))
rvn_rvh_subbasin_visnetwork_plot(rvh,groupBy="Gauged")
rvn_rvh_subbasin_visnetwork_plot(rvh,groupBy="DomLU")
rvn_rvh_subbasin_visnetwork_plot(rvh,groupBy="Elevation")
}
rvh <- rvn_rvh_read(system.file("extdata","Nith.rvh", package="RavenR"))
rvn_rvh_subbasin_visnetwork_plot(rvh,groupBy="Gauged")
rvn_rvh_subbasin_visnetwork_plot(rvh,groupBy="Elevation")