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
  }
talgalili/gplots documentation built on June 12, 2025, 1:40 a.m.