ldplot: LD plot

Description Usage Arguments Author(s) References Examples

Description

Creates a linkage disequilibrium plot from a matrix of pair-wise LD coefficients

Usage

1
ldplot(ld.mat, ld.type, color = heat.colors(50), title = NULL)

Arguments

ld.mat

A square matrix of LD coefficients

ld.type

A character value specifying what coefficients are used as input: either 'r' for correlation coefficients or 'd' for D/Dprime scores

color

A range of colors to be used for drawing. Default is heat.colors

title

Character string for the title of the plot

Author(s)

Giovanni Montana

References

Montana, G. HapSim: a simulation tool for generating haplotype data with pre-specified allele frequencies and LD coefficients. 2005.

Examples

1
2
3
4
data(ACEdata)

# LD plot of ACEdata using r^2 coefficients
ldplot(cor(ACEdata), ld.type='r') 

hapsim documentation built on May 1, 2019, 9:11 p.m.

Related to ldplot in hapsim...