plot.epanet.inp: Plot Method for epanet.inp

Description Usage Arguments Details Examples

View source: R/epanet.inp-s3.r

Description

Make a plot of the network using base graphics

Usage

1
2
3
4
## S3 method for class '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

1
2
plot(Net1) 
plot(Net1, plot.labels=TRUE)

Example output



epanetReader documentation built on May 2, 2019, 2:08 p.m.