Learn R Programming

Familias (version 2.6.2)

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 FamiliasPedigree
plot(x, y, ...)

Value

A plot is produced.

Arguments

x

An object of class FamiliasPedigree.

y

Not used in this printing function.

...

Other arguments transferred to `kinship2::plot.pedigree()`.

Author

Petter Mostad mostad@chalmers.se

Details

Graphical parameters used in `kinship2::plot.pedigree()` may be input via `plot.FamiliasPedigree()`.

Examples

Run this code
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")

Run the code above in your browser using DataLab