imagemat: image of a matrix

Description Usage Arguments Author(s) Examples

View source: R/imagemat.R

Description

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

Usage

1
2
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

1
2
3
4
5
6
7
8
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)

ririzarr/rafalib documentation built on April 17, 2021, 8:56 p.m.