draw_elev2D_OCN {OCNet} | R Documentation |
Plot 2D map of elevation generated by an OCN
Description
Function that plots the 2D elevation map generated by an OCN.
Usage
draw_elev2D_OCN(OCN, colPalette = terrain.colors(1000, alpha = 1),
addLegend = TRUE, drawRiver = FALSE, thrADraw = 0.002*OCN$FD$nNodes*OCN$cellsize^2,
riverColor = "#00BFFF", min_lwd = 0.5, max_lwd = 5, args_imagePlot = list())
Arguments
OCN |
A |
colPalette |
Color palette used for the plot. |
addLegend |
Logical. If |
drawRiver |
Logical. If |
thrADraw |
Threshold drainage area value used to display the network. |
riverColor |
Color used to display the OCN (only effective if |
min_lwd , max_lwd |
Minimum and maximum values of line width used to display the OCN (actual line width is proportional to the square root of drainage area). |
args_imagePlot |
List of arguments passed to |
Value
No output is returned.
Examples
# 1) draw 2D map of a 20x20 OCN with default settings
draw_elev2D_OCN(landscape_OCN(OCN_20))