Learn R Programming

gMCP (version 0.8-17)

joinGraphs: Joins two graphMCP objects

Description

Creates a new graphMCP object by joining two given graphMCP objects.

Usage

joinGraphs(graph1, graph2, xOffset = 0, yOffset = 200)

Value

A graphMCP object that represents a graph that consists of the two given graphs.

Arguments

graph1

A graph of class graphMCP.

graph2

A graph of class graphMCP.

xOffset

A numeric specifying an offset (on the x-axis) for placing the nodes and edge labels of the second graph.

yOffset

A numeric specifying an offset (on the y-axis) for placing the nodes and edge labels of the second graph.

Author

Kornelius Rohmeyer rohmeyer@small-projects.de

Details

If graph1 and graph2 have duplicates in the node names, the nodes of the second graph will be renamed.

If and only if the sum of the weights of graph1 and graph2 exceeds 1, the weights are scaled so that the sum equals 1.

A description attribute of either graph will be discarded.

See Also

graphMCP

Examples

Run this code


g1 <- BonferroniHolm(2)
g2 <- BonferroniHolm(3)

joinGraphs(g1, g2)


Run the code above in your browser using DataLab