plotNeighbourLD: Plot neighbour linkage disequilibrium

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/plot.neighbourLD.r

Description

A function to visualize Linkage Disequilibrium estimates between adjacent markers.

Usage

1
2
plotNeighbourLD(LD, gpData, dense=FALSE, nMarker = TRUE,
                centr=NULL, file=NULL, fileFormat="pdf", ...)

Arguments

LD

object of class LDmat, i.e the output of function pairwiseLD using argument type="matrix".

gpData

object of class gpData with object map or a data.frame with columns 'chr' (specifying the chromosome of the marker) and 'pos' (position of the marker within chromosome measured with genetic or physical distances)

dense

logical. Should density visualization for high-density genetic maps be used?

nMarker

logical. Print number of markers for each chromosome?

centr

numeric vector. Positions for the centromeres in the same order as chromosomes in map. If "maize", centromere positions of maize in Mbp are used.

file

Optionally a path to a file where the plot is saved to

fileFormat

character. At the moment two file formats are supported: pdf and png. Default is "pdf".

...

further graphical arguments for function plot

Details

The plot is similar to plotGenMap with the option dense=TRUE, but here the LD between adjacent markers is plotted along the chromosomes.

Value

Plot of neighbour LD along each chromosome. One chromosome is displayed from the first to the last marker.

Author(s)

Theresa Albrecht and Hans-Juergen Auinger

See Also

plotGenMap, pairwiseLD

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(synbreedData)
data(maize)
maize2 <-codeGeno(maize)
LD <- pairwiseLD(maize2,chr=1:10,type="matrix")
plotNeighbourLD(LD,maize2,nMarker=FALSE)

## End(Not run)

synbreed documentation built on March 19, 2018, 3 p.m.