slider.brush: interactive brushing functions

Description Usage Arguments Details Value Author(s) References See Also Examples

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

1
2

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

aplpack documentation built on Sept. 30, 2021, 5:08 p.m.