Learn R Programming

mpMap (version 1.14)

plot.mpprob: Plot summary of founder probabilities and haplotype blocks

Description

Plot the percentage of each chromosome inherited from each founder

Usage

"plot" (x, chr, nlines, ...)

Arguments

x
Object of class mpprob
chr
Chromosomes to plot. Default is all
nlines
Number of lines to select to show founder ancestry. Default is all
...
Additional arguments to plot function

Value

Barplot of the percentage of each founder on each chromosome; individual heatmaps of which chunks of each chromosome are inherited from each founder.#'

See Also

mpprob, summary.mpprob, heatmap_2

Examples

Run this code
sim.map <- sim.map(len=rep(100, 2), n.mar=11, include.x=FALSE, eq.spacing=TRUE)
sim.ped <- sim.mpped(4, 1, 500, 6, 1)
sim.dat <- sim.mpcross(map=sim.map, pedigree=sim.ped, qtl=matrix(data=c(1, 10, .4, 0, 0, 0, 1, 70, 0, .35, 0, 0), nrow=2, ncol=6, byrow=TRUE), seed=1)
mpp.dat <- mpprob(sim.dat, program="qtl")
plot(mpp.dat)

Run the code above in your browser using DataLab