Learn R Programming

FSAtools (version 2.0.5)

multiplot: 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)

Value

Invisibly returns TRUE on success.

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.

Author

Sylvain Mareschal

See Also

generic.process

Examples

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

Run the code above in your browser using DataLab