quickPlot-methods: Methods for 'quickPlot'

numLayers,worldArray-methodR Documentation

Methods for quickPlot

Description

These are required to create plotting methods to work with quickPlot.

Usage

## S4 method for signature 'worldArray'
numLayers(x)

## S4 method for signature 'agentMatrix'
.plotGrob(
  grobToPlot,
  col = NULL,
  real = FALSE,
  size = unit(5, "points"),
  minv,
  maxv,
  legend = TRUE,
  legendText = NULL,
  length = NULL,
  gp = gpar(),
  gpText = gpar(),
  pch = 19,
  speedup = 1,
  name = character(),
  vp = list(),
  ...
)

## S4 method for signature 'worldArray'
layerNames(object)

## S4 method for signature 'worldArray,.quickPlotGrob'
.identifyGrobToPlot(toPlot, sGrob, takeFromPlotObj)

Arguments

x

A .quickPlotObjects object or list of these.

grobToPlot

Raster*, SpatialLines*, SpatialPoints*, or SpatialPolygons* object.

col

Currently only used for the legend of a Raster* object.

real

Logical indicating whether the data are real numbers (i.e., as opposed to integer or factor).

size

The size of the SpatialPoints.

minv

The minimum value on a Raster*. Required because not all Rasters have this defined internally.

maxv

The maximum value on a Raster*. Required because not all Rasters have this defined internally.

legend

Logical indicating whether a legend should be drawn. Default TRUE.

legendText

Vector of values to use for legend value labels. Defaults to NULL which results in a pretty numeric representation. If Raster* has a Raster Attribute Table (rat; see raster package), this will be used by default. Currently, only a single vector is accepted.

length

Numeric.

gp

grid parameters, usually the output of a call to gpar.

gpText

gpar object for legend label text.

pch

Point character for SpatialPoints, as par.

speedup

Numeric. The factor by which the number of vertices in SpatialPolygons and SpatialLines* will be subsampled. The vertices are already subsampled by default to make plotting faster.

name

Character string of name of object being plotted.

vp

whole viewport tree of quickPlotGrob

...

Additional arguments. None currently implemented.

object

A Raster*, SpatialPoints*, SpatialLines*, or SpatialPolygons* object; or list of these.

toPlot

The object to plot. Should be a single layer if from a multi-layer object such as a RasterStack.

sGrob

quickPlot grob object

takeFromPlotObj

Logical. Should the data come from the argument passed into Plot (TRUE), or from the (.quickPlotEnv) (FALSE).


NetLogoR documentation built on Aug. 17, 2022, 9:06 a.m.