imageplot: Image Plot of Blocking Structure

Description Usage Arguments Details Author(s) See Also Examples

Description

Create an imageplot of the blocking structure.

Usage

1
imageplot(x, title, rv = FALSE, ...)

Arguments

x

matrix blocking structure (output of bmh or hbp functions)

title

character title of imageplot

rv

logical reverse the colour

...

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

bmh and aio

Examples

1
2
3
4
5
6
7
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))

hsphase documentation built on May 2, 2019, 3:44 p.m.