addSubgraph.list: Add a list of subgraphs to RedeR application.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Method to send subgraphs to RedeR app.

Usage

1
addSubgraph.list(obj, g, nodeList, ...)

Arguments

obj

Object of RedPort Class.

g

An igraph object.

nodeList

List of nodes. Will be used to extra subgraphs from g.

...

Additional arguments passed to RedeR application.

Details

Additional arguments:

gridRows

Number of lines to layout the subgraph panel (default = 2) <integer>

gridScale

Expansion factor of the grid area in the app panel. Options: 0.0 to 100 (default = 50) <numeric>.

gscale

Expansion factor each subgraph related to the app panel (default = 20) <numeric>.

gatt

Either a list or data frame with graph attributes (for data frames, attribute names on cols). See attribute syntax in addGraph

update

String argument: if 'all' it forces to update node/edge attributes of a graph already available in the app panel; if 'partial', only node attributes are updated (default = NULL).

theme

Some pre-defined nest attributes. Options: 'tm0','tm1','tm2','tm3','tm4','tm5','tm6'.

Value

Extracts subgraphs from 'igraph' objects and sends the result to the RedeR app.

Author(s)

Mauro Castro

See Also

addSubgraph addGraph

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# Initialize igraph
library(igraph)

## Not run: 

rdp <- RedPort()
calld(rdp)

g <- graph.lattice(c(5,5,5))

#..extract subgraphs from g and send to RedeR:
nl<-list(c(1:10),c(15:20))
att<-data.frame(isNest=c(TRUE,TRUE), nestColor=c("#0000ff","#ff0000"))
addSubgraph.list( rdp, g, nodeList=nl, gridRows=1, gatt=att, gridScale=80)

#..for further attributes see 'addGraph' function!

## End(Not run)

RedeR documentation built on Nov. 8, 2020, 7:45 p.m.