showGrid: Display a layout grid on the switchboard.

Description Arguments Value Usage See Also Examples

View source: R/showGrid.R

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

1
showGrid(nrows = 4, ncolumns = 4)

See Also

Other dashboard: switchboard_close(), switchboard()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)

switchboard documentation built on Oct. 9, 2021, 1:06 a.m.