plot.es.pedigree: Plot pedigrees

Description Usage Arguments Details See Also Examples

View source: R/Elston-objects.r

Description

Plot objects created with es.pedigree

Usage

1
2
## 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

1
2
3
4
5
6
7
8
9
## 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 May 29, 2017, 8 p.m.