powered by
the rows are sorted such that the first column has 2 blocks, the second column has 4 blocks, etc. see example("imagesort")
imagesort(x, col = c("white", "black"), ...)
a matrix of 0s and 1s
the colors of 0 and 1
arguments to heatmap
Michael I. Love
x <- replicate(4,sample(0:1,40,TRUE)) imagesort(x)
Run the code above in your browser using DataLab