Learn R Programming

SpaDES (version 1.2.0)

.identifyGrobToPlot: Identify where to get the grob from

Description

Internal function.

Usage

.identifyGrobToPlot(grobNamesi, toPlot, takeFromPlotObj)
".identifyGrobToPlot"(grobNamesi, toPlot, takeFromPlotObj)
".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.