powered by
Creates a linkage disequilibrium plot from a matrix of pair-wise LD coefficients
ldplot(ld.mat, ld.type, color = heat.colors(50), title = NULL)
A square matrix of LD coefficients
A character value specifying what coefficients are used as input: either 'r' for correlation coefficients or 'd' for D/Dprime scores
A range of colors to be used for drawing. Default is heat.colors
heat.colors
Character string for the title of the plot
Montana, G. HapSim: a simulation tool for generating haplotype data with pre-specified allele frequencies and LD coefficients. 2005.
data(ACEdata) # LD plot of ACEdata using r^2 coefficients ldplot(cor(ACEdata), ld.type='r')
Run the code above in your browser using DataLab