number_trio {switchboard} | R Documentation |
Display the value of three continuous variables in a simulation.
Description
The number_trio
widget displays the numerical value of three continuous
variables.
Arguments
eavesdrop |
A vector of three variables to track. |
digits |
The number of digits to display in a widget. |
label |
A vector of three 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., |
Value
Nothing.
Usage
number_trio(eavesdrop = c(NULL, NULL, NULL), digits = 5, updates = 1, label = c("", "", ""), size = 1, placeOnGrid = c(1, 1))
See Also
Other eavesdroppers:
benchmark()
,
counter_tally()
,
counter()
,
eavesdropper_2D()
,
eavesdropper_X()
,
eavesdropper()
,
injector_2D()
,
injector_X()
,
injector()
,
number_pair()
,
number_quartet()
,
number()
,
progress_benchmark()
Examples
## Not run:
for (i in 1:250) {
switchboard(delay = 0.01) %>%
number_trio(c(i, i/2, i/3), label = c("i", "i/2", "i/3"))
}
switchboard_close()
## End(Not run)