rvn_subbasin_network_plot {RavenR}R Documentation

Plot Raven subbasin network.

Description

Generates a plot of the subbasin network from rvh file information.

Usage

rvn_subbasin_network_plot(SBtable, labeled = FALSE)

Arguments

SBtable

a valid table of Raven subbasins, obtained from rvn_rvh_read

labeled

TRUE if the nodes are labeled with the SubBasin ID, SBID

Details

Takes the information gathered from an .rvh file via the function rvn_rvh_read and generates a plot object of the subbasin network, where nodes are located at SubBasin lat-long centroids, and edge widths of the network correspond to contributing upstream area.

Value

p1ggplot object of subbasin network plot

Author(s)

James R. Craig, University of Waterloo

Examples

# read in rvh file
rvh <- rvn_rvh_read(system.file("extdata","Nith.rvh", package="RavenR"))

# create network plot of watershed structure from rvh file
rvn_subbasin_network_plot(rvh$SBtable)

# include labels
rvn_subbasin_network_plot(rvh$SBtable, labeled=TRUE)


[Package RavenR version 2.1.0 Index]