toVisNetwork: Converts a PanelPRO compatible data frame into a visNetwork...

Description Usage Arguments Examples

View source: R/ppToVisNetwork.R

Description

Converts a PanelPRO compatible data frame into a visNetwork data frame

Usage

1
toVisNetwork(ped, title = "Your Pedigree")

Arguments

ped

a pedigree that contains ID, Sex, MotherID, FatherID, isProband, CurAge It is assumed that in this data.frame, Sex = 1 if male, Sex = 0 if female and Sex = NA if unkonwn Affliction is coded in "isAffXX" columns, where XX are short names of cancers The age of diagnosis is correspondingly coded in "AgeXX" columns

title

a string for the title on the plot

Examples

1

gavin-k-lee/visPed documentation built on July 22, 2021, 1:09 p.m.