identifyGrobToPlot: Identify where to get the grob from

.identifyGrobToPlotR Documentation

Identify where to get the grob from

Description

Internal function.

Usage

.identifyGrobToPlot(toPlot, sGrob, takeFromPlotObj)

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

Arguments

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).

Details

Because the Plot function can use the global environment as a source of objects to plot, not just the call itself, this function identifies where the data for the grob should come from, the current call or the global environment.

Author(s)

Eliot McIntire


quickPlot documentation built on July 9, 2023, 6:02 p.m.