nestNodes {RedeR} | R Documentation |
Method to nest nodes in an active RedeR session.
nestNodes(obj, nodes, ...)
obj |
Object of RedPort Class. |
nodes |
<array of strings> |
... |
Additional arguments passed to RedeR application. |
Additional arguments:
Status of the container on the screen: <'plain'>, <'transparent'>, or <'hide'> (default = 'plain').
Logical value, whether to assign the container name to the nested nodes (default = TRUE).
Logical value, whether is to anchor the container in dynamic layouts (default = FALSE).
Expansion factor of the nest area related to a parent nest – or related to the app panel (default = 40) <numerics>.
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>.
Nest ID of a parent nest. Must be used with 'isAssign=TRUE' (default = NULL).
A list with graph attributes. See nest attribute syntax in addGraph
Some pre-defined nest attributes. Options: 'tm0','tm1','tm2','tm3','tm4','tm5', 'tm6' <string>. Alternatively, it can be a list with customized attributes.
Add/change graph objects.
Prior calling this method invoke RedeR application via XML-RPC server (i.e. 'calld').
Mauro Castro
# 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)