Learn R Programming

pergola (version 1.0)

plotChr: Plotting one or two linkage maps

Description

Visualization of one or two linkage maps. Used as comparison between two different maps (e.g. different parameters or linkage mapping tools).

Usage

plotChr(map1, map2 = NULL, cex = 1, labels = c("Map 1", "Map 2"), ...)

Arguments

map1
Numeric vector with marker positions.
map2
Optional second map for comparison.
cex
Font size in the figure.
labels
Labels for the two blocks
...
arguments are forwarded to plot.

Value

None. Plotting only.

Examples

Run this code
data(simTetra)
simTetraGen <- bases2genotypes(simTetra, 4)
rfMat <- calcRec(simTetraGen, 4)
split <- splitChr(rfMat, nchr = 7)
split <- sortLeafs(rfMat, split)
map <- pullMap(rfMat, split = split) 
plotChr(map[[1]])  

Run the code above in your browser using DataLab