as_kinship2_pedigree: Convert pedigree to kinship2 format

View source: R/ped_plot.R

as_kinship2_pedigreeR Documentation

Convert pedigree to kinship2 format

Description

Convert pedigree to kinship2 format

Usage

as_kinship2_pedigree(
  x,
  deceased = NULL,
  aff = NULL,
  twins = NULL,
  hints = NULL
)

Arguments

x

A ped() object.

deceased

A vector of labels indicating deceased pedigree members.

aff

A vector of labels identifying members whose plot symbols should be filled. (This is typically used in medical pedigrees to indicate affected members.)

twins

A data frame with columns id1, id2 and code, passed on to the relation parameter of kinship2::plot.pedigree().

hints

An optional list of hints passed on to kinship2::align.pedigree().

Examples

x = nuclearPed()
as_kinship2_pedigree(x)


pedtools documentation built on Nov. 5, 2023, 5:06 p.m.