draw.PDN {PDN}R Documentation

Draw Personalized Disease Network for one patient with network and ggplot2

Description

Draw Personalized Disease Network based on newtwork matrix

Usage

draw.PDN(tt, labels)

Arguments

tt

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

labels

names of each node in the network matrix

Examples

#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)

[Package PDN version 0.1.0 Index]