Description Usage Arguments Details Examples
Add legend of network elements to the active plot
1 | 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()
1 2 3 4 | ## make a new blank plot
plot( c(0,1), c(0,1), type = 'n')
## add the nodes, including junctions
plotElementsLegend('topright')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.