width.Legends: Width of the Legends

Description Usage Arguments Value Examples

View source: R/00_size.R

Description

Width of the Legends

Usage

1
2
## 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

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

ComplexHeatmap documentation built on Nov. 14, 2020, 2:01 a.m.