slider.brush {aplpack}R Documentation

interactive brushing functions

Description

These functions compute a pairs plot or a simple xy-plot and open a slider control widget for brushing.

slider.brush.pairs computes a pairs plot; the user defines an interval for one of the variables and in effect all data points in this interval will be recolored.

slider.brush.plot.xy computes an xy-plot; the user defines a interval for a third variable z and all points (x,y) will be recolored red if the z value is in the interval.

Usage

  slider.brush.pairs(x, ...)
  slider.brush.plot.xy(x, y, z, ...)

Arguments

...

new settings for global graphics parameters

x

matrix or data frame or vector

y

vector of y values if x is not a matrix

z

vector of z values if x is not a matrix

Details

slider.brush.pairs draws a pairs plot of the data set x. The first slider defines the lower limit of the interval and the second its width. By the third slider a variable is selected. All data points for which the selected variable is in the interval are recolored red.

slider.brush.plot.xy draws an xy-plot of the data set x. The first slider defines the lower limit of the interval of z values and the second one its width. All data points for which the variable z is in the interval are recolored red.

Value

a message about the usage

Author(s)

Hans Peter Wolf

References

W. S. Cleveland, R. A. Becker, and G. Weil. The Use of Brushing and Rotation for Data Analysis. InW. S. Cleveland and M. E. McGill, editors, Dynamic Graphics for Statistics. Wadsworth and Brooks/Cole, Pacific Grove, CA, 1988.

See Also

pairs, plot

Examples

## Not run: 
## This example cannot be run by examples() but should be work in an interactive R session
  slider.brush.pairs(iris)

## End(Not run)
## Not run: 
## This example cannot be run by examples() but should be work in an interactive R session
  slider.brush.plot.xy(iris[,1:3])

## End(Not run)

[Package aplpack version 1.3.3 Index]