Identify Points On a Hexagonal Binned Plot

DESCRIPTION:

Interactively identifies points on the plot of a hexbin object if a suitable graphics device is being used.

USAGE:

identify.hexbin(x, use.pars=par(), labels, tolerance=0.2, 
                offset=0, ...) 

REQUIRED ARGUMENTS:

x
a "hexbin" object. This must have components count, xcenter, and ycenter.
use.pars
list of graphical parameters returned when using plot.hexbin to plot x before identifying.

OPTIONAL ARGUMENTS:

labels
vector giving labels for each of the hexagons. If supplied, it must be the same length as dim(x)[1]. The default is to use x$count, the cell counts.
tolerance
points within tolerance inches from the pointer will be identified. The default is to identify a point if it is within a tenth of an inch of the pointer.
offset
offset for individual labels. The default implies that the text string for identification will be placed right at the cell centers. See this parameters definition in the help file for identify.default.
...
optional arguments taken from the argument list for identify.default.

VALUE:

indices of the identified points.

SIDE EFFECTS:

labels are placed on the current plot if plot=TRUE, the default for identify.default .

DETAILS:

This function is a method for the generic function identify for class "hexbin" . It can be invoked by calling identify for an object of the appropriate class, or directly by calling identify.hexbin regardless of the class of the object.

SEE ALSO:

, , .

EXAMPLES:

x <- rnorm(10000) 
y <- rnorm(10000)
bin1 <- hexbin(x,y) 
bin1pars <- plot(bin1)  # Save the parameters used to plot the hexagons 
identify(bin1, bin1pars)