Description Arguments Value Usage See Also Examples
The number_pair widget displays the numerical value of two continuous
variables.
eavesdrop |
A vector of two variables to track. |
digits |
The number of digits to display in a widget. |
label |
A vector of two small captions/labels for the widget. |
updates |
The number of times the widget is to be updated (e.g., when it be modified/changed). The default updates with each iteration. |
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., |
Nothing.
1 2 |
Other eavesdroppers:
benchmark(),
counter_tally(),
counter(),
eavesdropper_2D(),
eavesdropper_X(),
eavesdropper(),
injector_2D(),
injector_X(),
injector(),
number_quartet(),
number_trio(),
number(),
progress_benchmark()
1 2 3 4 5 6 7 8 9 10 | ## Not run:
for (i in 1:250) {
switchboard(delay = 0.01) %>%
number_pair(c(i, i/2), label = c("i", "i/2"))
}
switchboard_close()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.