Learn R Programming

SpaDES (version 1.3.1)

.makeLayout: Make an optimal layout of plots

Description

Internal function. Using the size of the current device, and number and dimension ratios of the plots, place them optimally in the plotting region.

Usage

.makeLayout(arr, visualSqueeze, legend = TRUE, axes = TRUE, title = TRUE)

Arguments

arr

an object of class .arrangement.

visualSqueeze

Numeric. The proportion of the white space to be used for plots. Default is 0.75.

legend

Logical indicating whether legend should be included as part of layout calculation. Default is TRUE.

axes

Logical indicating whether the axes should be included as part of layout calculation. Default is TRUE.

title

Logical indicating whether the names of each plot should be written above plots and should be included as part of layout calculation. Default is TRUE.