rvn_rvi_process_plot {RavenR} | R Documentation |
This routine takes a connections data from generated using rvn_rvi_connections() and returns the connections information as a network graph ggplot object.
rvn_rvi_process_plot(connections, pdfout = NULL)
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 |
This function uses the output from the rvn_rvi_connections
function to generate the plot.
p1returns ggplot object. Also generates a .pdf file in working directory if pdfplot argument is not NULL.
tries to follow basic network structure, accomodates unrecognized state variables on LHS of plot
James R. Craig, University of Waterloo
rvn_rvi_connections
to generate connections table from an rvi object
See also the Raven page
rvi <- rvn_rvi_read(system.file("extdata","Nith.rvi", package="RavenR")) conn <- rvn_rvi_connections(rvi) rvn_rvi_process_plot(conn)