getArrayLayout: Generate layout for multiple figures.

Description Usage Arguments Value See Also Examples

View source: R/graphutils.R

Description

Calculates a multiple page layout for plotting multiplie figures.

Usage

1
2
getArrayLayout(nfig, nrow = 4, ncol = 3, leg = TRUE, byrow = FALSE,
  leg.side = 1, leg.len = 0.2)

Arguments

nfig

Number of figures that will be plotted.

nrow

Number of rows on each page.

ncol

Number of columns on each page.

leg

Add a common legend region?

byrow

fill each page by rows?

leg.side

Side to put common legend (1-bottom, 2-left, 3-top, 4-right).

Size

of the common legend window.

Value

A list containing the layout.

See Also

arrayLayout legendWindow

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
lay <- getArrayLayout(6, 2, 2)
arrayLayout(1, lay)
plot(1:10)
plot(1:10)
plot(1:10)
plot(1:10)
legendWindow("center", legend="Points", pch=1)
arrayLayout(2, lay)
plot(1:10)
plot(1:10)
legendWindow("center", legend="Points", pch=1)

tunelipt/wutils documentation built on Nov. 5, 2019, 11:01 a.m.