imageplot {hsphase} | R Documentation |
Image Plot of Blocking Structure
Description
Create an imageplot of the blocking structure.
Usage
imageplot(x, title, rv = FALSE, ...)
Arguments
x |
|
title |
|
rv |
|
... |
Can be used to set xLabels and yLabels axis. |
Details
White indicates regions of unknown origin, red and blue correspond to the two sire strands.
Author(s)
This is a modified version of a function written by Chris Seidel.
http://www.phaget4.org/R/image_matrix.html
See Also
Examples
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))
[Package hsphase version 2.0.3 Index]