Learn R Programming

SpaDES (version 1.2.0)

.makeViewports: Make viewports

Description

Given a set of extents, and a layout for these extents, this function will output a viewport tree to allow plotting.

Usage

.makeViewports(sPlot, newArr = FALSE)

Arguments

sPlot
An object of class .spadesPlot.
newArr
Logical indicating whether this function will create a completely new viewport. Default FALSE.

# @importFrom NetLogoRClasses extent

Details

This function will either create a totally new set of viewports, or simply add some nested viewports to an existing arrangement, i.e., is there still white space availabe to plot.