Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.FamiliasPedigree

Plotting function for FamiliasPedigree objects


Description

The function piggybacks the plot function for pedigree objects from the kinship2 package to create a plotting function for FamiliasPedigree objects. Before conversion to a pedigree object, additional parents are added to the pedigree so that each person has either zero or two parents within the pedigree.

Usage

## S3 method for class 'FamiliasPedigree'
plot(x, y, ...)

Arguments

x

An object of class FamiliasPedigree

y

Not used in this printing function

...

Other arguments are transferred to the plot.pedigree function of the kinship2 package.

Details

Graphical parameters used in the plot.pedigree function may be input via the plot.FamiliasPedigree function.

Value

A plot is produced.

Author(s)

Petter Mostad mostad@chalmers.se

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.
ped <- FamiliasPedigree(id = c("child", "AF"), momid = c(NA, NA), 
       dadid = c("AF", NA), sex = c("male", "male"))
plot(ped)
dev.new()
plot(ped, symbolsize = 2, cex = 2, family = "mono")

Familias

Probabilities for Pedigrees Given DNA Data

v2.4
GPL-2
Authors
Petter Mostad, Thore Egeland, Ivar Simonsson
Initial release
2016-02-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.