Creates a grid layout nrow x ncol for n items.
grid_layout(n, rows = NULL, cols = NULL)
A numeric vector of length 2: rows, cols
Number of items in grid
Pass one of rows or cols, or none, in which case auto layout is used.
grid_layout(24, cols=4)
grid_layout(24)
grid_layout(24, rows=2)
Run the code above in your browser using DataLab