returngraph: return igraph object from diffee result specified by user...

Description Usage Arguments Details Value Author(s) Examples

View source: R/Plot.R

Description

This function can return an igraph object from diffee result for user to work with directly

Usage

1
returngraph(x, type = "task", index = NULL)

Arguments

x

output generated from diffee function (diffee class)

type

type of graph, there are four options: (1) "task" (graph for each task (including shared part) specified further by subID (task number)) (2) "neighbour" (zoom into nodes in the graph specified further by parameter "index" (node id)

index

determines which node(s) to zoom into when parameter type is "neighbour" could either be an integer or vector of integers representing node ids (zoom into one node or multiple nodes)

Details

the function aims to provide users the flexibility to explore and visualize the graph own their own generated from diffee

Value

an igraph object of graph / subgraph from diffee result specified by user input

Author(s)

Beilun Wang, Zhaoyang Wang (Author), Beilun Wang (maintainer)

Examples

1
2
3
4
5
6
## Not run: 
data(exampleData)
result = diffee(exampleData[[1]], exampleData[[2]], 0.45)
graph = returngraph(result)

## End(Not run)

diffee documentation built on May 2, 2019, 8:51 a.m.