numLayers.worldArray {NetLogoR} | R Documentation |
Methods for quickPlot
Description
These are required to create plotting methods to work with quickPlot.
Usage
## S3 method for class 'worldArray'
numLayers(x)
## S3 method for class 'worldMatrix'
numLayers(x)
## S4 method for signature 'worldArray'
layerNames(object)
## S4 method for signature 'worldArray,.quickPlotGrob'
.identifyGrobToPlot(toPlot, sGrob, takeFromPlotObj)
Arguments
x |
An object or list of objects. |
object |
An object from which to extract the layer names. |
toPlot |
The object to plot. Should be a single layer if from a multi-layer
object such as a |
sGrob |
|
takeFromPlotObj |
Logical. Should the data come from the argument passed
into |
Value
numLayers
returns an integer representing the number of
layers in a worldArray
or worldMatrix
(which is always 1L
)
layerNames
returns an character vector representing the names
of the layers in a worldArray
[Package NetLogoR version 1.0.5 Index]