Learn R Programming

RnavGraph (version 0.1.8)

ng_get: Extract data from a NG_data, NG_graph, NG_path or navgraph handler object.

Description

Extract data from objects from some of the in RnavGraph specifically defined classes.

Usage

ng_get(obj, what = NULL, ...)

Arguments

obj
Either a: navgraph handler, NG_data, NG_path, NG_graph object.
what
String of what should be extracted from the object. You can get a list of possible accessible objects by not specifying the what argument.
...
Currently not used.

Value

Object that was requested with what.

See Also

navGraph, ng_get-methods, ng_set, ng_set-methods, ng_set_color<-, ng_get_color, ng_set_size<-, ng_get_size

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)

## See what you can extract from the navGraph handler
ng_get(nav)

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

Run the code above in your browser using DataLab