nestNodes: Nest nodes to containers.

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

Description

Method to nest nodes in an active RedeR session.

Usage

1
nestNodes(obj, nodes, ...)

Arguments

obj

Object of RedPort Class.

nodes

<array of strings>

...

Additional arguments passed to RedeR application.

Details

Additional arguments:

nestImage

Status of the container on the screen: <'plain'>, <'transparent'>, or <'hide'> (default = 'plain').

isAssign

Logical value, whether to assign the container name to the nested nodes (default = TRUE).

isAnchor

Logical value, whether is to anchor the container in dynamic layouts (default = FALSE).

gscale

Expansion factor of the nest area related to a parent nest – or related to the app panel (default = 40) <numerics>.

gcoord

Sets the nest c(x,y) center related to the parent center. Coords between 0 and 100 are set to the inner area (default = NULL) <numeric vector>.

parent

Nest ID of a parent nest. Must be used with 'isAssign=TRUE' (default = NULL).

gatt

A list with graph attributes. See nest attribute syntax in addGraph

theme

Some pre-defined nest attributes. Options: 'tm0','tm1','tm2','tm3','tm4','tm5', 'tm6' <string>. Alternatively, it can be a list with customized attributes.

Value

Add/change graph objects.

Note

Prior calling this method invoke RedeR application via XML-RPC server (i.e. 'calld').

Author(s)

Mauro Castro

See Also

RedPort

Examples

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

el<-matrix(c('n1','n2','n3','n4'), ncol=2, byrow=TRUE)
g <- graph.edgelist(el)

## Not run: 

  rdp <- RedPort() 
  calld(rdp)
  addGraph( rdp, g, layout.kamada.kawai(g) )
  nestNodes( rdp, c('n1','n2') )
  nestNodes( rdp, c("n3","n4") ) 

## End(Not run)  

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