R/layout_set.R

Defines functions layout_set layout_show

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
  }
r-gregmisc/gplots documentation built on March 3, 2020, 4:47 a.m.