Learn R Programming

bnClustOmics (version 1.1.1)

plotNode: Plotting all connections of one node

Description

This function plots all connections (incoming and outgoing) of a specific node in one network or in all network in the discovered model.

Usage

plotNode(localint, node, p = 0.3, rmult = 7, dbcheck = TRUE, cex = 0.5)

Value

plots a graph consisting of a specified node and its neighbours in the networks representing clusters identified by 'bnclustOmics'

Arguments

localint

an annotated list of interactions obtained by the function annotateEdges

node

center node name

p

defines a threshold for the posterior probability; edges whose posterior is higher than the threshold will be plotted

rmult

defines the raduis of the circle

dbcheck

logical, defines if interactions absent in the database are denoted with a dashed line

cex

regulates font size

Author

Polina Suter

Examples

Run this code
bnnames<-bnInfo(simdata,c("b","c"),c("M","T"))
allInteractions<-annotateEdges(bnres3,bnnames,sump=1.2,minp=0.5,minkp=0.9,dblist=simint)
plotNode(allInteractions,"T43",p=0.5)
plotNode(allInteractions,"T43",p=0.5,dbcheck=FALSE)

Run the code above in your browser using DataLab