uniteGraphs: This function unites two graphs.

Description Usage Arguments Value Author(s) Examples

View source: R/visualizeBiopax.R

Description

This function unites the two supplied graphs. Layout parameters from graph1 are used. If colorNodes==TRUE the returned graph has different colors for overlapping nodes and nodes individual for each graph.

Usage

1
2
3
4
5
6
uniteGraphs(
  graph1,
  graph2,
  colorNodes = TRUE,
  colors = c("#B3E2CD", "#FDCDAC", "#F4CAE4")
)

Arguments

graph1

graphNEL

graph2

graphNEL

colorNodes

logical

colors

colors character vector of colors. If colorNodes==TRUE these colors are used for graph1 and graph2 respectivley.

Value

Return a graph generated by uniting the two supplied graphs

Author(s)

Frank Kramer

Examples

1
2
3
4
5
6
7
 # load data
 data(biopaxexample)
 pwid1 = "pid_p_100002_wntpathway"
 pwid2 = "pid_p_100146_hespathway"
 mygraph1 = pathway2RegulatoryGraph(biopax, pwid1)
 mygraph2 = pathway2RegulatoryGraph(biopax, pwid2)
 plotRegulatoryGraph(uniteGraphs(mygraph1,mygraph2))

rBiopaxParser documentation built on Nov. 8, 2020, 8:21 p.m.