Learn R Programming

synbreed (version 0.9-3)

LDMap: LD Heatmap

Description

Visualization of pairwise Linkage Disequilibrium (LD) estimates generated by function pairwiseLD in a LD heatmap for each chromosome using the LDheatmap package (Shin et al, 2006) .

Usage

LDMap(LDmat,gpData,chr=NULL,file=NULL,...)

Arguments

LDmat
Object of class LDmat generated by function pairwiseLD and argument type="matrix"
gpData
Object of class gpData that was used in pairwiseLD
chr
numeric. Return value is a plot for each chromosome in chr.
file
Optionally a path to a file where plot is saved as pdf
...
Further arguments that could be passed to function LDheatmap

References

Shin JH, Blay S, McNeney B, Graham J (2006). LDheatmap: An R Function for Graphical Display of Pairwise Linkage Disequilibria Between Single Nucleotide Polymorphisms. Journal of Statistical Software, 16, Code Snippet 3. URL http://stat-db.stat.sfu.ca: 8080/statgen/research/LDheatmap/.

See Also

pairwiseLD, LDheatmap, LDDist

Examples

Run this code
data(maize)
maizeC <- codeGeno(maize)

# LD for chr 1
maizeLD <- pairwiseLD(maizeC,chr=1,type="matrix")
LDMap(maizeLD,maizeC)

Run the code above in your browser using DataLab