plot.es.pedigree {ElstonStewart} | 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.
## 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)