slider.brush {aplpack} | R Documentation |
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.
slider.brush.pairs(x, ...) slider.brush.plot.xy(x, y, z, ...)
... |
new settings for global graphics parameters |
x |
matrix or data frame or vector |
y |
vector of y values if |
z |
vector of z values if |
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.
a message about the usage
Hans Peter Wolf
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.
## 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)