grid.draw.Legends: Draw the Legends

Description Usage Arguments Details Examples

View source: R/grid.Legend.R

Description

Draw the Legends

Usage

1
2
## S3 method for class 'Legends'
grid.draw(x, recording = TRUE)

Arguments

x

The grob object returned by Legend or packLegend.

recording

Pass to grid.draw.

Details

This function is actually an S3 method of the Legends class for the grid.draw general method. It applies grid.draw on the grob slot of the object.

Examples

1
2
3
4
lgd = Legend(at = 1:4, title = "foo")
pushViewport(viewport(x = unit(0, "npc"), y = unit(0, "npc"), just = c("left", "bottom")))
grid.draw(lgd)
popViewport()

Example output

Loading required package: grid

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