imagesort: image with sorted rows

Description Usage Arguments Author(s) Examples

View source: R/imagesort.R

Description

the rows are sorted such that the first column has 2 blocks, the second column has 4 blocks, etc. see example("imagesort")

Usage

1
imagesort(x, col = c("white", "black"), ...)

Arguments

x

a matrix of 0s and 1s

col

the colors of 0 and 1

...

arguments to heatmap

Author(s)

Michael I. Love

Examples

1
2
x <- replicate(4,sample(0:1,40,TRUE))
imagesort(x)

rafalab/rafalib documentation built on April 17, 2021, 6:47 p.m.