compute_legend_layout: Compute legend row/column layout

View source: R/legend-smart.R

compute_legend_layoutR Documentation

Compute legend row/column layout

Description

Compute legend row/column layout

Usage

compute_legend_layout(n_groups, position, nrow, ncol)

Arguments

n_groups

Number of groups

position

Position ("right", "left", "top", "bottom", "inside")

nrow

User-specified rows (can be NULL)

ncol

User-specified columns (can be NULL)

Value

list(nrow = integer, ncol = integer)


Rclade documentation built on Sept. 26, 2026, 5:07 p.m.