nestNodes {RedeR} | R Documentation

## 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` | <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

    # 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)

[Package RedeR version 1.42.0 Index]