Learn R Programming

survivalAnalysis (version 0.3.0)

grid_layout: Grid layouting

Description

Creates a grid layout nrow x ncol for n items.

Usage

grid_layout(n, rows = NULL, cols = NULL)

Arguments

n

Number of items in grid

rows, cols

Pass one of rows or cols, or none, in which case auto layout is used.

Value

A numeric vector of length 2: rows, cols

Examples

Run this code
# NOT RUN {
grid_layout(24, cols=4)
grid_layout(24)
grid_layout(24, rows=2)
# }

Run the code above in your browser using DataLab