Learn R Programming

hsphase (version 3.0.0)

imageplot: Image Plot of Blocking Structure

Description

Create an image plot of the blocking structure.

Usage

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

Arguments

x

matrix. Blocking structure (output of bmh or hbp).

title

character (or NULL). Title of the image plot.

rv

logical. If TRUE, reverse the colour scheme.

...

Optional graphical parameters.

Author

This is a modified version of a function written by Chris Seidel, available at http://www.phaget4.org/R/image_matrix.html.

Details

White indicates regions of unknown origin; red and blue correspond to the two sire strands.

See Also

bmh, aio

Examples

Run this code
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