pedplot {optiSel} | R Documentation |
Plots a Pedigree
Description
Plots a pedigree
Usage
pedplot(Pedig, affected=NULL, status=NULL, label="Indiv", ...)
Arguments
Pedig |
Data frame containing the pedigree with columns |
affected |
Logical vector indicating for each individual if its symbol should be plotted in colour. The default |
status |
Logical vector indicating for each individual if its symbol in the plot should be crossed out. The default |
label |
Character vector containing the columns of data frame |
... |
Options passed to the underlying function plot.pedigree from package |
Details
This function plots a pedigree. If data frame Pedig
has logical column keep
then the default values mean that the symbols of these animals are plotted in color and for animals from other breeds the symbol is crossed out.
Value
An invisible list returned by the underlying function plot.pedigree from package kinship2
.
Author(s)
Robin Wellmann
Examples
data(PedigWithErrors)
sPed <- subPed(PedigWithErrors, keep="276000810087543", prevGen=3, succGen=2)
pedplot(sPed, mar=c(2,4,2,4), label=c("Indiv", "Born", "Breed"), cex=0.4)