addSubgraph: Add subgraphs to RedeR application.

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

Description

Method to send subgraph to RedeR app.

Usage

1
addSubgraph(obj, g, nodes, ...)

Arguments

obj

Object of RedPort Class.

g

An igraph object.

nodes

Nodes of the subgraph <array of strings>

...

Additional arguments passed to RedeR application.

Details

Additional arguments:

gatt

A list of graph attributes. See attribute syntax in addGraph

gscale

Expansion factor of the graph area related to the app panel (default = 75) <numerics>.

gcoord

Sets the graph x,y center. Coords between 0 and 100 are set to the visible area of the app panel (default = c(75,75)) <numeric vector>.

theme

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

Value

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

Author(s)

Mauro Castro

See Also

addGraph addSubgraph.list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Initialize igraph
library(igraph)

## Not run: 

rdp <- RedPort()
calld(rdp)

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

#..extracts a subgraph from g and sends to RedeR:
addSubgraph( rdp, g, nodes=c(1:10) )

#..sets some attributes on g prior to extraction!
g$isNest<-TRUE
g$nestColor="#ff0000"
g$scale=50
addSubgraph( rdp, g, nodes=c(1:10) )

#..alternatively, sets an independent list of attributes:
att <-list()
att$isNest<-TRUE
att$nestColor="#0000ff"
att$scale=50
att$coordX=25
att$coordY=25
addSubgraph( rdp, g, nodes=c(20:30), gatt=att )

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

## End(Not run)

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