get_layout: Compute the layout of the zen plot

View source: R/getlayout.R

get_layoutR Documentation

Compute the layout of the zen plot

Description

Compute the layout of the zen plot

Usage

get_layout(
  turns,
  n2dplots,
  first1d = TRUE,
  last1d = TRUE,
  width1d = 1,
  width2d = 10
)

Arguments

turns

turns (character vector consisting if "u", "d", "l", "r")

n2dplots

the number of 2d plots (faces of the hypercube to be laid out)

first1d

logical indicating whether the first 1d plot should be plotted

last1d

logical indicating whether the last 1d plot should be plotted

width1d

width of 1d plots

width2d

width of 2d plots

Value

list containing 1) the plot orientations (c("h", "s", "v", "s", ...)) 2) the plot dimensions (1d plot, 2d plot, 1d plot, ...) 3) the variable numbers plotted (an (nPlots, 2)-matrix) 4) the total width of the layout 5) the total height of the layout 6) coordinates of the bounding boxes

Author(s)

Marius Hofert and Wayne Oldford


zenplots documentation built on Nov. 8, 2023, 1:10 a.m.