as_grob.Heatmap: Convert Object into a Grob

View source: R/alignpatch-grob.R

as_grob.HeatmapR Documentation

Convert Object into a Grob

Description

Convert Object into a Grob

Usage

## S3 method for class 'Heatmap'
as_grob(x, ..., device = NULL)

## S3 method for class 'HeatmapList'
as_grob(x, ..., device = NULL)

## S3 method for class 'HeatmapAnnotation'
as_grob(x, ..., device = NULL)

Arguments

x

An object to be converted into a grob.

...

Additional arguments passed to draw().

device

A function that opens a graphics device for temporary rendering. By default this is an off-screen, in-memory device based on the pdf device, but this default device may not be satisfactory when using custom fonts.

Value

A grob object.

as_grob method collections

  • as_grob.grob()

  • as_grob.gList()

  • as_grob.patch_ggplot()

  • as_grob.ggplot()

  • as_grob.ggalign::alignpatches()

  • as_grob.patchwork()

  • as_grob.patch()

  • as_grob.formula()

  • as_grob.recordedplot()

  • as_grob.trellis()

  • as_grob.Heatmap()

  • as_grob.pheatmap()

See Also

  • Heatmap()

  • HeatmapAnnotation()

Other as_grob: as_grob.formula(), as_grob.gList(), as_grob.ggalign::alignpatches(), as_grob.ggplot(), as_grob.grob(), as_grob.patch(), as_grob.patch_ggplot(), as_grob.patchwork(), as_grob.pheatmap(), as_grob.recordedplot(), as_grob.trellis()


ggalign documentation built on Nov. 5, 2025, 7:16 p.m.