R/multiplot.R

Defines functions multiplot

Documented in multiplot

# Wrapper for layout with only atomic arguments
multiplot <- function(
			nrow,
			ncol,
			widths = rep.int(1, ncol),
			heights = rep.int(1, nrow),
			indexes = 1:(nrow*ncol),
			byrow = FALSE,
			respect = FALSE,
			cex = 1
		) 
	{
	
	# Transfer to layout
	layout(
		mat = matrix(indexes, nrow=nrow, ncol=ncol, byrow=byrow),
		widths = widths,
		heights = heights,
		respect = respect
	)
	if(!is.na(cex)) par(cex=cex)
	
	invisible(TRUE)
}

Try the FSAtools package in your browser

Any scripts or data that you put into this service are public.

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