plotPedigree | R Documentation |
Plot a pedigree using the "igraph" package. This function was inspired by plot.pedigree() from the "synbreed" package (under GPL-3). It add options for monoecious species and auto-fecondation.
plotPedigree(
inds,
mothers,
fathers,
generations,
sexes = NULL,
plot.it = TRUE,
verbose = 1,
edge.col.mother = "black",
edge.col.father = "darkgrey",
vertex.label.color = "darkblue",
vertex.color = "white",
vertex.size = 20,
vertex.shape = "none",
vertex.label.family = "Helvetica",
mult.edge.curve = 0.25,
edge.arrow.width = 0.75,
edge.arrow.size = 0.75,
xmin = -1,
xmax = 1,
ymin = -1,
ymax = 1,
...
)
inds |
identifiers of the genotypes |
mothers |
identifiers of their mother; can be NA (case of the founders and haplodiploidization) |
fathers |
identifiers of their father; can be NA (case of the founders and haplodiploidization) |
generations |
should start at 0 |
sexes |
"F" for female (circle), "M" for male (square) and "H" for hermaphrodite (triangle); can also be NA (no shape) |
plot.it |
if TRUE, the pedigree will be plotted |
verbose |
verbosity level (0/1/2) |
edge.col.mother |
see ?igraph.plotting |
edge.col.father |
see ?igraph.plotting |
vertex.label.color |
see ?igraph.plotting |
vertex.color |
see ?igraph.plotting |
vertex.size |
see ?igraph.plotting |
vertex.shape |
see ?igraph.plotting |
vertex.label.family |
see ?igraph.plotting |
mult.edge.curve |
see ?igraph.plotting |
edge.arrow.width |
see ?igraph.plotting |
edge.arrow.size |
see ?igraph.plotting |
xmin |
see |
xmax |
see |
ymin |
see |
ymax |
see |
... |
other plotting options; see ?plot.igraph and ?igraph.plotting |
invisible list with objects required to plot the pedigree
Timothee Flutre
subsetPedigree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.