plot_pedigree: Plot a pedigree for a given individual at a given date

Description Usage Arguments Examples

Description

This function plots a pedigree showing colored by relatedness and survival status with labels indivating age and locations of living pedigree members.

Usage

1
2
plot_pedigree(id, evdat, df_ind, ped = NULL, evmat, label = NULL,
  cex = 0.6, chrtype = "autosome")

Arguments

id

Individual ID

evdat

Dates of interest in the Year-month-day format (e.g. "1850-01-01")

df_ind

A dataframe

ped

An optional pedgree object related to id. Will be generated, if not provided.

evmat

Event matrix

label

optional vector of labels to add to pedigree members

cex

size of text and symbols

chrtype

Chromosme type for relatedness calculation (either 'autosome' or 'X')

Examples

1
2
3
4
5
## Not run: 
plot_pedigree(40, "1850-01-01", df_ind, evmat=evmat)
detach(kh33::kh)

## End(Not run)

johow/kinlab documentation built on July 5, 2019, 4:23 p.m.