SpaDES (version 1.1.4)

.identifyGrobToPlot: Identify where to get the grob from

Description

Internal function.

Usage

.identifyGrobToPlot(grobNamesi, toPlot, takeFromPlotObj)

## S3 method for class '.spadesGrob,list,logical': .identifyGrobToPlot(grobNamesi, toPlot, takeFromPlotObj)

## S3 method for class '.spadesGrob,missing,logical': .identifyGrobToPlot(grobNamesi, toPlot, takeFromPlotObj)

Arguments

grobNamesi
name of the object to plot
toPlot
list containing the objects to plot, made as a call to the Plot function
takeFromPlotObj
logical. If TRUE, then take from the call to Plot; if FALSE takes from global envir.

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.