Description Usage Arguments Value Author(s) See Also Examples
View source: R/NavGraphHandler.R
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.
1 | ng_update(nghandler)
|
nghandler |
navGraph handler of a running navGraph session. |
updated navGraph handler.
Adrian Waddell and R. Wayne Oldford
navGraph
, ng_walk
, ng_get-methods
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.