Description Arguments Value Usage See Also Examples
View source: R/eavesdropper_2D.R
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
).
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 |
Nothing.
1 2 3 4 |
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()
1 2 3 4 5 6 7 8 9 10 11 12 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.