customLayout (version 0.1.0)

layCreate: Create custom layout.

Description

Create custom layout.

Usage

layCreate(mat, widths = NULL, heights = NULL)

Arguments

mat

a matrix specifying the location of the figures. See layout for more information.

widths

a vector of values for the relative heights of rows in mat.

heights

a vector of values for the relative heights of rows in mat.

Examples

Run this code
# NOT RUN {
library(customLayout)
par(mar = c(3,2,2,1))
lay = layCreate(matrix(1:4,nc=2),widths=c(3,2),heights=c(2,1))
lay2 = layCreate(matrix(1:3))
cl = layColBind(lay,lay2, widths=c(3,1))
laySet(cl) # initialize drawing area
plot(1:100+rnorm(100))
plot(rnorm(100), type = "l")
hist(rnorm(500))
acf(rnorm(100))
pie(c(3,4,6),col = 2:4)
pie(c(3,2,7),col = 2:4+3)
pie(c(5,4,2),col = 2:4+6)
# }

Run the code above in your browser using DataLab