Description Usage Arguments Examples
Draw Personalized Disease Network based on newtwork matrix
1 |
tt |
one row of network matrix generated from comorbidity data matrix using buildnetworks |
labels |
names of each node in the network matrix |
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)
|
There were 50 or more warnings (use warnings() to see the first 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.