plot.river_network: Plot a river network

View source: R/plot_print.R

plot.river_networkR Documentation

Plot a river network

Description

Plot a river network

Usage

## S3 method for class 'river_network'
plot(x, variable = 1, t, zlim, ...)

Arguments

x

A river_network()

variable

If state is defined, the column to use for plotting; see 'details'

t

Optional, time step to print; if missing, defaults to most recent

zlim

Optional, z limits for colour scales when plotting a state variable

...

Additional arguments to igraph::plot.igraph()

Details

The argument 'variable' can either be a column number from the state variable matrix, a column name from the state variable matrix, or the special name "species", which produces a plot of the network with species presence-absence.

Examples

Q = rep(1, 4)
adj = matrix(0, nrow = 4, ncol = 4)
adj[1,2] = adj[2,3] = adj[4,3] = 1
rn = river_network(adj, Q)
plot(rn)
plot.river_network(rn)

flee-group/flume documentation built on Jan. 29, 2024, 6:44 p.m.