Learn R Programming

SpaDES (version 1.3.1)

.makeList: Convert plotArgs to list of lists

Description

Internal function. Take the inputs as plotArgs to the Plot function, and make them a list of length numSpadesPlotObjects entries of lists.

Usage

.makeList(plotArgs, numSpadesPlotObjects)

# S4 method for list .makeList(plotArgs, numSpadesPlotObjects)

Arguments

plotArgs

list. Any arguments that the the grid package can accept for the specific grob types, e.g., rasterGrob, polygonGrob, etc.

numSpadesPlotObjects

Numeric. The number of .spadesPlotObjects. This can't easily be deduced from the plotArgs because of the RasterStacks. So passed manually.