ng_set_sizesetter: Change sizes of data points in an active navGraph session

Description Usage Arguments Author(s) See Also Examples

Description

Specify new sizes for each point for an active navGraph session.

Usage

1
ng_set_size(obj, dataName) <- value

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

Replacement vector or single value specifing the sizes (>0) of points.

Author(s)

Adrian Waddell and Wayne Oldford

See Also

navGraph, ng_get_size, ng_set_color<-, ng_get_color

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)

## set point sizes
ng_set_size(nav,'IrisData') <- sample(1:7, replace=TRUE, 150)

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