View source: R/draw_elev2D_OCN.R
draw_elev2D_OCN | R Documentation |
Function that plots the 2D elevation map generated by an OCN.
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())
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 |
No output is returned.
# 1) draw 2D map of a 20x20 OCN with default settings
draw_elev2D_OCN(landscape_OCN(OCN_20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.