View source: R/Elston-objects.r
| plot.es.pedigree | R Documentation |
Plot objects created with es.pedigree
## S3 method for class 'es.pedigree' plot(x, ...)
x |
an object created with |
... |
additionnal arguments including possibly a vector of phenotypes |
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.
es.pedigree, plot.pedigree
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.