ng_get_color: Extract point coloring from an active navGraph session for a...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/NavGraphHandler.R

Description

If you use the brush and coloring tool in navGraph, you can retrieve your coloring information with this function as long the navGraph session is still active.

Usage

1
ng_get_color(obj, dataName)

Arguments

obj

A navgraph handler of an active navGraph session.

dataName

String of the data name. If not specified and only one data set is beeing used in the navGraph session, it will default to this data. Otherwise, if multiple data sets are being used in a navGraph session, the function will list the name of these data sets and ask you to specify one.

Value

Vector with color values for each point.

Author(s)

Adrian Waddell and Wayne Oldford

See Also

navGraph, ng_set_color<-, ng_get_size, ng_set_size<-

Examples

1
2
3
4
5
6
7
8
## Define a NG_data object
ng.iris <- ng_data(name = "IrisData", data = iris[,1:4])

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

## get colors from active navGraph session
cols <- ng_get_color(nav, "IrisData")


RnavGraph documentation built on May 19, 2017, 2 p.m.
Search within the RnavGraph package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.