Learn R Programming

solarius (version 0.3.0.2)

plotPed: Plot the pedigree

Description

Plot the pedigree tree based on the ID-fields given in phenotypes. Plotting is based on kinship2 package.

Usage

plotPed(data, ped)

Arguments

data
A data.frame of phenotypes.
ped
An integer or a character value, that indicates the pedigree.

Details

The ID fields are extracted from the data via matchIdNames function. The required fields are ID, FA, MO, SEX and FAMID.

See Also

matchIdNames

Examples

Run this code
data(dat30)
plotPed(dat30, 1)

Run the code above in your browser using DataLab