makeGallery: makeGallery

View source: R/E006_gallery.R

makeGalleryR Documentation

makeGallery

Description

Takes a list of components and/or layers and creates a section that contains a grid of sections which each contain one item from the original list.

Usage

makeGallery(
  inputList,
  nRow,
  width = unit(1, "npc"),
  height = unit(1, "npc"),
  x = unit(0, "npc"),
  y = unit(0, "npc"),
  xscale = NULL,
  yscale = NULL,
  useGlobalScale = FALSE,
  units = list(),
  preserveAspectRatio = FALSE
)

Arguments

nRow

number of rows in the gallery.

width, height, x, y

parameters for the final section

xscale, yscale

a scale to use for each child section. If not provided these are calculated. See useGlobalScale.

useGlobalScale

if FALSE child scaling calculations are independent. If TRUE, scales are adjusted so each child has the same scales, and all components are visible. Ignored if xscale and yscale are provided.

units

provided to each child section

preserveAspectRatio

logical. Used if scales are automatically calculated.

Value

Returns a section object.

Examples

pruneStart(1:10,4)

R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.