Learn R Programming

mpMap2 (version 1.0.4)

pedigreeToGraph: Convert pedigree to a graph

Description

Convert pedigree to a graph

Usage

pedigreeToGraph(pedigree)

Arguments

pedigree

The pedigree to convert into a graph

Value

An object of class pedigreeGraph, containing the graph and a planar layout for the graph.

Details

It is often useful for visualisation purposes to generate the pedigree graph. In this graph, every genetic line is a vertex in a graph, and there is an edge from every parent to all the offspring. This function generates the graph, and lays the graph out in the plane in a way that tends to make the structure of the graph as clear as possible.