Height of the Legends

# S3 method for Legends
height(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:::height(lgd)
#> [1] 44.0329444444444mm