R/layout_set.R

Defines functions layout_show layout_set

layout_set <- function(mat, index)
  {
    mfg <- par("mfg")
    mfg[1:2] = which(mat==index, arr.ind=TRUE)[1,]
    par(mfg=mfg)
    invisible(mfg)
  }

layout_show <- function(mat)
  {
    graphics::layout.show( max(mat) )
    mat
  }

Try the gplots package in your browser

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

gplots documentation built on April 25, 2022, 9:06 a.m.