setNode,GatingHierarchy,character,character-method {flowWorkspace} | R Documentation

## Update the name of one node in a gating hierarchy/GatingSet.

### Description

`setNode` update the name of one node in a gating hierarchy/GatingSet.

hide/unhide a node

### Usage

    ## S4 method for signature 'GatingHierarchy,character,character'
    setNode(x, y, value)

    ## S4 method for signature 'GatingHierarchy,character,logical'
    setNode(x, y, value)

    ## S4 method for signature 'GatingSet,character,ANY'
    setNode(x, y, value)

### Arguments

`x` | `GatingHierarchy` object
`y` | `character` node name or path
`value` | A `character` the name of the node. or `logical` to indicate whether to hide a node

### Examples

      ## Not run:
        #G is a gating hierarchy
        getNodes(G[[1]])#return node names
        setNode(G,"L","lymph")

    ## End(Not run)
    ## Not run:
         setNode(gh, 4, FALSE) # hide a node
         setNode(gh, 4, TRUE) # unhide a node

    ## End(Not run)

[Package flowWorkspace version 3.28.2 Index]