Learn R Programming

playwith (version 0.9-11)

playGetIDs: Get IDs of identified points

Description

Part of the playwith Application Programming Interface.

Usage

playGetIDs(playState = playDevCur(), labels = FALSE)

Arguments

playState
a playState object representing the plot, window and device.
labels
TRUE to return the labels as displayed; otherwise the subscripts into the original data object.

Value

  • an integer vector, or if labels = TRUE a character vector.

Details

This plays a role similar to identify.

See Also

playwith.API

Examples

Run this code
if (interactive()) {

playwith(xyplot(1:100 ~ 1:100 | 1:2),
  labels = paste("label", 1:100, sep=""))
## identify some points... then
playGetIDs()
playGetIDs(labels = TRUE)

}

Run the code above in your browser using DataLab