plot.es.pedigree: Plot pedigrees

View source: R/Elston-objects.r

plot.es.pedigreeR Documentation

Plot pedigrees

Description

Plot objects created with es.pedigree

Usage

## S3 method for class 'es.pedigree'
plot(x, ...)

Arguments

x

an object created with es.pedigree

...

additionnal arguments including possibly a vector of phenotypes pheno, and other arguments to be given to plot.pedigree

Details

This function relies on the function plot.pedigree provided by the package kinship2. The phenotype is build assuming that x$pheno is a list of vectors, the first element of which gives the status. Alternatively, a vector pheno of appropriate length can be given as an additionnal argument.

See Also

es.pedigree, plot.pedigree

Examples

## cf Elston-Stewart vignette for more coments on this example
data(conrad2)
# creating an es.pedigree object
genotypes <- c( rep(list(0:2), 21), 2 )

X <- es.pedigree( id = conrad2$id, father = conrad2$father, mother = conrad2$mother,
      sex = conrad2$sex, pheno = rep(0, 22), geno = genotypes )

plot(X)

ElstonStewart documentation built on June 20, 2022, 5:15 p.m.