Learn R Programming

OCNet (version 0.4.0)

draw_elev2D_OCN: 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)

Arguments

OCN

List as produced by landscape_OCN.

colPalette

Color palette used for the plot.

addLegend

Logical. If TRUE, image.plot is used to display the legend; as a result, elements (e.g. node coordinates) subsequently plotted of on top of the 2D elevation map might be wrongly positioned.

Value

No output is returned.

Examples

Run this code
# NOT RUN {
# 1) draw 2D map of a 20x20 OCN with default settings
draw_elev2D_OCN(landscape_OCN(OCN_20))
# }

Run the code above in your browser using DataLab