plot.epanet.inp: Plot Method for epanet.inp
Description
Make a plot of the network using base graphics
Usage
# S3 method for epanet.inp
plot(
x,
plot.junctions = TRUE,
legend.locn = "topright",
plot.labels = FALSE,
link.lwd = 3,
link.col = "black",
...
)
Arguments
- x
object of class epanet.inp
- plot.junctions
logical indicating whether to plot junctions
- legend.locn
character string passed to legend() specifying
the location of the legend on the plot
- plot.labels
logical indicating whether to plot the labels using text()
- link.lwd
value of lwd passed to segments()
- link.col
value of col passed to segments()
- ...
other arguments passed to plot()
Details
Implements the generic plot function for S3 objects of class epanet.inp.
The plot is built from base graphics by creating a blank plot and then calling
the helper functions plotInpLinks(), plotInpNodes(), plotElementsLegend().
Examples
Run this codeplot(Net1)
plot(Net1, plot.labels=TRUE)
Run the code above in your browser using DataLab