Learn R Programming

survivalAnalysis (version 0.4.0)

grid_layout: Grid layouting

Description

Creates a grid layout nrow x ncol for n items.

Usage

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

Value

A numeric vector of length 2: rows, cols

Arguments

n

Number of items in grid

rows, cols

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

Examples

Run this code
grid_layout(24, cols=4)
grid_layout(24)
grid_layout(24, rows=2)

Run the code above in your browser using DataLab