eavesdropper_2D {switchboard} | R Documentation |
Eavesdrop two continuous variables on a bivariate plot.
Description
The eavesdropper_2D
widget displays a bivariate window of data. The
plotted data have a half-life and are deleted once their timer (parameter
forget
) expires. For the univariate version use eavesdropper
.
The number of data points in the window can be throttled with forget
or
delay
. Options also include automatic regression (plotRegression
)
and an the sample size of the number of data points currently
displayed (plotSampleSize
).
Arguments
eavesdrop |
A vector of two variables to track on a bivariate plot. For
example, |
minimum |
A vector of the two minimum values of variables in |
maximum |
A vector of the two maximum values of variables in |
label |
A vector of two short strings designating labels/captions
for each variable used in |
size |
A number used to designate the size (magnification) of the
widget. The default is set to |
placeOnGrid |
A row by column coordinate (e.g., |
updates |
The number of times the widget is to be updated (e.g., when it be modified/changed). The default updates the widget 100 times. Increase number for smoother progress bar animation. |
forget |
A time-delay in milliseconds for when displayed points on a widget will be deleted. |
delay |
Pause each update of the switchboard. Default has no delay,
values are in seconds (e.g., |
plotRegression |
Display a switchboard-estimated regression line on a widget. |
plotSampleSize |
Display the number items (N) displayed within a widget. |
switch |
Display an on/off switch on a widget that controls widget updates.
When |
Value
Nothing.
Usage
eavesdropper_2D(eavesdrop = c(NULL, NULL), minimum = c(1, 1), maximum = c(1, 1), label = c("", ""), size = 1, placeOnGrid = c(1, 1), updates = 100, forget = 400, delay = 0, plotRegression = FALSE, plotSampleSize = FALSE, switch = FALSE)
See Also
Other moving windows:
eavesdropper_X()
,
eavesdropper()
,
injector_2D()
,
injector_X()
,
injector()
Other eavesdroppers:
benchmark()
,
counter_tally()
,
counter()
,
eavesdropper_X()
,
eavesdropper()
,
injector_2D()
,
injector_X()
,
injector()
,
number_pair()
,
number_quartet()
,
number_trio()
,
number()
,
progress_benchmark()
Examples
## Not run:
for (i in 1:10000) {
x <- cos(i/400)
y <- sin(2 * i/400) / 2
switchboard(skip = 4) %>%
eavesdropper_2D(c(x, y), minimum = c(-1, -1), maximum = c(1, 1), forget = 100)
}
switchboard_close()
## End(Not run)