showGrid {switchboard} | R Documentation |
Display a layout grid on the switchboard.
Description
The showGrid
widget displays a collection of buttons positioned
along a grid to help devise where you would like to organize/place multiple
widgets on a switchboard. Buttons contain the row by column coordinates of the
grid. NOTE: You can click on any button to copy-to-clipboard the small
coordinate script. You can then paste in your switchboard widget
placeOnGrid
option (e.g., placeOnGrid = c(1, 2)
).
Arguments
nrows |
Number of rows to plot on grid. |
ncolumns |
Number of columns to plot on grid. |
Value
Nothing.
Usage
showGrid(nrows = 4, ncolumns = 4)
See Also
Other dashboard:
switchboard_close()
,
switchboard()
Examples
## Not run:
for (i in 1:250) {
switchboard(delay = 0.01) %>%
progress_ring(i, maximum = 250, placeOnGrid = c(1,1)) %>%
progress_ring(i, maximum = 250, placeOnGrid = c(2,2)) %>%
progress_ring(i, maximum = 250, placeOnGrid = c(3,3)) %>%
progress_ring(i, maximum = 250, placeOnGrid = c(4,4)) %>%
showGrid()
}
switchboard_close()
## End(Not run)
[Package switchboard version 0.1 Index]