switchboard {switchboard} | R Documentation |
Initialize a switchboard window
Description
The switchboard
initializes a switchboard window, then using %>%
you can pipe in various widgets into this window to create a dashboard.
Usage
switchboard(
title = "hidden title",
delay = 0,
skip = 0,
padX = 10,
padY = 0,
font = "Helvetica",
mainColors = c("#007fff", "#ffffff", "#666666", "#cccccc")
)
Arguments
title |
The title of the switchboard Tcl/Tk window. Switchboards hide
the titlebar, but is can be un-hidden by adding a title (e.g., |
delay |
Pause each update of the switchboard. Default has no delay,
values are in seconds (e.g., |
skip |
Skips updating the switchboard. The default does not skip updates,
values are in number of iterations to skip (e.g., |
padX |
Horizontal padding in pixels between widgets. |
padY |
Vertical padding in pixels between widgets. |
font |
The primary font used in all widgets, default is "Helvetica". |
mainColors |
The color set used in all widgets. It is a vector of four hex colors with each element corresponding to: c("main color", "background", "text color", "alt text color"). |
See Also
Other dashboard:
showGrid()
,
switchboard_close()
Examples
## Not run:
for(i in 1:100)
switchboard(delay = 0.05) %>%
progress_ibis(i, maximum = 100, closeAtMaximum = TRUE)
## End(Not run)