rvn_rvi_process_plot {RavenR}R Documentation

Plot Raven hydrologic process network

Description

This routine takes a connections data from generated using rvn_rvi_connections() and returns the connections information as a network graph ggplot object.

Usage

rvn_rvi_process_plot(connections, pdfout = NULL)

Arguments

connections

a dataframe of from-to connections generated using rvn_rvi_connections()

pdfout

name of pdf file to save the network plot to, if null no PDF is generated

Details

This function uses the output from the rvn_rvi_connections function to generate the plot.

Value

p1returns ggplot object. Also generates a .pdf file in working directory if pdfplot argument is not NULL.

Note

tries to follow basic network structure, accomodates unrecognized state variables on LHS of plot

Author(s)

James R. Craig, University of Waterloo

See Also

rvn_rvi_connections to generate connections table from an rvi object

See also the Raven page

Examples

rvi <- rvn_rvi_read(system.file("extdata","Nith.rvi", package="RavenR"))
conn <- rvn_rvi_connections(rvi)

rvn_rvi_process_plot(conn)


[Package RavenR version 2.1.0 Index]