Learn R Programming

RnavGraph (version 0.1.8)

ng_update: Synchronize a navGraph handler with a running navGraph sesson

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

ng_update(nghandler)

Arguments

nghandler
navGraph handler of a running navGraph session.

Value

updated navGraph handler.

See Also

navGraph, ng_walk, ng_get-methods

Examples

Run this code
## 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")

Run the code above in your browser using DataLab