Learn R Programming

epanetReader (version 1.0.0)

plotElementsLegend: Plot Legend of Network Elements

Description

Add legend of network elements to the active plot

Usage

plotElementsLegend(legend.locn)

Arguments

legend.locn

keyword for location of legend. See details of legend() function.

Details

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()

Examples

Run this code
## make a new blank plot 
plot( c(0,1), c(0,1), type = 'n') 
## add the nodes, including junctions 
plotElementsLegend('topright') 

Run the code above in your browser using DataLab