powered by
Create an image plot of the blocking structure.
imageplot(x, title = c(), rv = FALSE, ...)
matrix. Blocking structure (output of bmh or hbp).
matrix
bmh
hbp
character (or NULL). Title of the image plot.
character
NULL
logical. If TRUE, reverse the colour scheme.
logical
TRUE
Optional graphical parameters.
This is a modified version of a function written by Chris Seidel, available at http://www.phaget4.org/R/image_matrix.html.
White indicates regions of unknown origin; red and blue correspond to the two sire strands.
bmh, aio
aio
genotype <- matrix(c( 0,2,1,1,1, 2,0,1,2,2, 2,2,1,0,2, 2,2,1,1,1, 0,0,2,1,0 ), ncol = 5, byrow = TRUE) imageplot(bmh(genotype))
Run the code above in your browser using DataLab