grid_layout: Grid layouting

Description Usage Arguments Value Examples

View source: R/survminertools.R

Description

Creates a grid layout nrow x ncol for n items.

Usage

1
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

1
2
3
grid_layout(24, cols=4)
grid_layout(24)
grid_layout(24, rows=2)

survivalAnalysis documentation built on Feb. 11, 2022, 5:07 p.m.