dist.image: Plot distance matrix

View source: R/family.R

dist.imageR Documentation

Plot distance matrix

Description

Plot the distance matrix for a RAPD data set, with (optionally) lines drawn separating clusters of individuals.

Usage

dist.image(dist,fams=NULL,col=topo.colors(1+ncol(dist)),...)

Arguments

dist

A matrix of size (n.ind x n.ind), containing the distances between pairs of individuals.

fams

A list of clusters; each component in the list is one inferred family, containing the indices of individuals placed in that family.

col

Colors to use in the plot; see image.

...

Other arguments to pass to image.

Value

The function calls image in order to create an image of the distance matrix.

Author(s)

Karl W Broman broman@wisc.edu

See Also

calc.dist, true.fams

Examples

data(aedes)
f <- freq(aedes)
co <- cutoff(f)
d <- calc.dist(aedes)
fam <- fingers(d,co,make.plot=TRUE)
dist.image(d,fam)

kbroman/fingers documentation built on May 17, 2023, 11:50 p.m.