Learn R Programming

ibdsim2 (version 2.0.0)

karyogram2: Karyogram plots

Description

Functions for visualising IBD segments in karyograms. The karyogram1() and karyogram2() functions produces karyograms illustrating the output of ibdsim() for one or two specified individuals. The actual plotting is done by functions karyoHaploid() and karyoDiploid().

Usage

karyogram2(sim, ids = NULL, verbose = TRUE, ...)

Value

A plot object returned invisibly.

Arguments

sim

A genomeSim object.

ids

A vector of one or two ID labels.

verbose

A logical.

...

Further arguments passed on to karyoHaploid().

Examples

Run this code
# \donttest{
x = quadHalfFirstCousins()
s = ibdsim(x, seed = 1729)
# karyogram2(s, ids = leaves(x), title = "QHFC")
# }

Run the code above in your browser using DataLab