plotElementsLegend {epanetReader} | R Documentation |
Add legend of network elements to the active plot
plotElementsLegend(legend.locn)
legend.locn |
keyword for location of legend. See details of legend() function. |
Helper function for adding a legend to the active plot. Uses plot characters 16, 15, 8 and 25 for Tanks, Reservoirs, Pumps and Valves for compatibility with plotInpNodes()
## make a new blank plot
plot( c(0,1), c(0,1), type = 'n')
## add the nodes, including junctions
plotElementsLegend('topright')