powered by
Create an imageplot of the blocking structure.
imageplot(x, title, rv = FALSE, ...)
matrix blocking structure (output of bmh or hbp functions)
matrix
character title of imageplot
character
logical reverse the colour
logical
Can be used to set xLabels and yLabels axis.
This is a modified version of a function written by Chris Seidel. http://www.phaget4.org/R/image_matrix.html
White indicates regions of unknown origin, red and blue correspond to the two sire strands.
bmh and aio
bmh
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) # each row contains the SNP of individuals imageplot(bmh(genotype))
Run the code above in your browser using DataLab