Learn R Programming

RedeR (version 1.20.0)

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

Description

Method to send subgraphs to RedeR app.

Usage

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.

Value

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

Details

Additional arguments:
gridRows
Number of lines to layout the subgraph panel (default = 2)

gridScale
Expansion factor of the grid area in the app panel. Options: 0.0 to 100 (default = 50) .
gscale
Expansion factor each subgraph related to the app panel (default = 20) .

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'.

See Also

addSubgraph addGraph

Examples

Run this code

rdp <- RedPort('MyPort')

## Not run: 
# 
# 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)

Run the code above in your browser using DataLab