getSelectedIndices.ggobi {Rggobi}R Documentation

Computes which records are selected in a ggobi instance

Description

The user can select different records in a ggobi dataset using the brushing region. These functions provide two ways to query the set of selected observations. One (getSelectedIndices.ggobi) returns the indices of the selected records. The other is a simple transformation of this information which indicates, via a logical vector, for each record whether it is currently selected.

Usage

getSelectedIndices.ggobi(.data = 1, .gobi=getDefaultGGobi())
isObservationSelected.ggobi(.data = 1, .gobi=getDefaultGGobi())

Arguments

.data the dataset whose selected status is to be queried. This can be any identifier for a dataset, specifically a name, index or an object of class ggobiDataset.
.gobi an identifier for the ggobi instance in which the dataset to be queried resides. This is either an index or an object of class ggobi. This is not necessary if the .data argument is supplied in the form of an object of class ggobiDataset.

Value

getSelectedIndices.ggobi returns an integer vector containing the indices of the records in the specified dataset that are currently selected.
isObservationSelected.ggobi returns a logical vector the length of which is the number of records in the specified dataset and in which each element indicates whether the corresponding record is currently selected.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org/RSggobi.html

See Also

setBrushLocation.ggobi setBrushSize.ggobi getBrushLocation.ggobi getBrushSize.ggobi

Examples



[Package Contents]