Skip to contents

plot EPANET model network. Allows plotting of changed pipe ids, which are defined as vector in parameter "changedPipeIDs"

Usage

plotModel(
  inpdat,
  pch = 16,
  cex = 0.2,
  xlab = "",
  ylab = "",
  main = defaultMain(inpdat, 1),
  zoomToPumps = FALSE,
  changedPipeIDs = NULL,
  ...
)

Arguments

inpdat

EPANET input file

pch

Either an integer specifying a symbol or a single character to be used as the default in plotting points. See points for possible values and their interpretation (default: 16)

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. This starts as 1 when a device is opened, and is reset when the layout is changed, e.g. by setting mfrow. (default: 0.2)

xlab

a title for the x axis (default: "")

ylab

a title for the y axis (default: "")

main

an overall title for the plot (default: kwb.epanet:::defaultMain(inpdat, 1))

zoomToPumps

should plot zoomed to pumps (default: FALSE)

changedPipeIDs

optional, vector with changed pipe IDs (default: NULL)

...

additional arguments passed to plot