Learn R Programming

RedeR (version 1.20.0)

nestNodes: Nest nodes to containers.

Description

Method to nest nodes in an active RedeR session.

Usage

nestNodes(obj, nodes, ...)

Arguments

obj
Object of RedPort Class.
nodes
...
Additional arguments passed to RedeR application.

Value

Add/change graph objects.

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) .
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) .
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' . Alternatively, it can be a list with customized attributes.

See Also

RedPort

Examples

Run this code

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

## Not run: 
# 
#   calld(rdp)
#   addGraph( rdp, g, layout.kamada.kawai(g) )
#   nestNodes( rdp, c('n1','n2') )
#   nestNodes( rdp, c("n3","n4") ) 
# ## End(Not run)  

Run the code above in your browser using DataLab