draw.PDN: Draw Personalized Disease Network for one patient with...

Description Usage Arguments Examples

Description

Draw Personalized Disease Network based on newtwork matrix

Usage

1

Arguments

tt

one row of network matrix generated from comorbidity data matrix using buildnetworks

labels

names of each node in the network matrix

Examples

1
2
3
4
5
6
7
8
9
#Select a subset of data for toy example
comorbidity_data = comorbidity_data[c(1:10),]
survival_data = survival_data[c(1:10),]
#  Getting the names
k1 = datecut(comorbidity_data,survival_data[,1],survival_data[,2])
a = buildnetworks(comorbidity_data,k1)
#Plot PDN for patient 7
nn = names(comorbidity_data)
draw.PDN(a[7,],nn)

Example output

There were 50 or more warnings (use warnings() to see the first 50)

PDN documentation built on May 2, 2019, 3:10 p.m.