imagemat: image of a matrix

View source: R/imagemat.R

imagematR Documentation

image of a matrix

Description

Produces an image of a matrix which matches the natural orientation.

Usage

imagemat(
  x,
  col = colorRampPalette(c("white", "grey50"))(9),
  las = 1,
  xlab = "",
  ylab = "",
  ...
)

Arguments

x

the matrix

col

the colors

las

as in par

xlab

x-axis title

ylab

y-axis title

...

arguments passed to image

Author(s)

Michael I. Love

Examples


x <- matrix(c(1,0,0,0,1,
              1,1,0,1,1,
              1,0,1,0,1,
              1,0,0,0,1,
              1,0,0,0,1),
ncol=5,byrow=TRUE)

imagemat(x)


rafalib documentation built on April 11, 2025, 5:51 p.m.

Related to imagemat in rafalib...