plotNode: Plotting all connections of one node

View source: R/plotBNomics.R

plotNodeR Documentation

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)

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

Value

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

Author(s)

Polina Suter

Examples

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)

bnClustOmics documentation built on Aug. 5, 2022, 5:11 p.m.