ng_update: Synchronize a navGraph handler with a running navGraph sesson

Description Usage Arguments Value Author(s) See Also Examples

View source: R/NavGraphHandler.R

Description

The navGraph handler can be used to interact with a running navGraph session via the R prompt.

For the tk2d display one can change color and size of the data points. You can retrieve this information by updating the navGraph handler and reading the group attribute of the data object back. See the examples.

Usage

1
ng_update(nghandler)

Arguments

nghandler

navGraph handler of a running navGraph session.

Value

updated navGraph handler.

Author(s)

Adrian Waddell and R. Wayne Oldford

See Also

navGraph, ng_walk, ng_get-methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Define a NG_data object
ng.iris <- ng_data(name = "iris", data = iris[,1:4])

## start a navGraph session
nav <- navGraph(ng.iris)

## modify colors of points

## update navGraph handler
nav <- ng_update(nav)
nav # show method

## get information form navGraph handler
ng_get(nav)

## get group attribute back
ng_get(ng_get(nav,"data"),"group")

RnavGraph documentation built on May 29, 2017, 4:18 p.m.