multiplot: Wrapper to layout

View source: R/multiplot.R

multiplotR Documentation

Wrapper to layout

Description

Calls layout using atomic arguments and convenient defaults, mainly to be included in generic.process design files.

Usage

  multiplot(nrow, ncol, widths = rep.int(1, ncol), heights = rep.int(1, nrow),
    indexes = 1:(nrow * ncol), byrow = FALSE, respect = FALSE, cex = 1)

Arguments

nrow

Single integer value, the amount of rows into which divide the screen for multiple plots.

ncol

Single integer value, the amount of columns into which divide the screen for multiple plots.

widths

To be passed to layout.

heights

To be passed to layout.

indexes

Integer vector, the ordering of plots while building the mat matrix for layout.

byrow

Single logical value, whether to fill the mat matrix for layout with indexes by row or by column.

respect

To be passed to layout.

cex

Single numeric value, if not NA par will be called to force this value, as large layout automatically change it.

Value

Invisibly returns TRUE on success.

Author(s)

Sylvain Mareschal

See Also

generic.process

Examples

  multiplot(nrow=1, ncol=3, widths=c(1,2,2))
  plot(1:5)
  plot(1:5)
  plot(1:5)

FSAtools documentation built on Aug. 19, 2023, 1:06 a.m.