plot.river_network | R Documentation |
Plot a river network
## S3 method for class 'river_network'
plot(x, variable = 1, t, zlim, ...)
x |
A |
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 |
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.