width.Legends: Width of the Legends

View source: R/00_size.R

width.LegendsR Documentation

Width of the Legends

Description

Width of the Legends

Usage

## S3 method for class 'Legends'
width(x, ...)

Arguments

x

The grob object returned by Legend or packLegend.

...

Other arguments.

Value

The returned unit x is always in mm.

Examples

lgd = Legend(labels = 1:10, title = "foo", legend_gp = gpar(fill = "red"))
ComplexHeatmap:::width(lgd)

jokergoo/ComplexHeatmap documentation built on Nov. 17, 2023, 11:27 a.m.