Skip to contents

The patch() function is used by wrap() to convert objects into a grob, enabling their alignment within align_plots().

Usage

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

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

# S3 method for class 'HeatmapAnnotation'
patch(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.

See also

  • Heatmap

  • HeatmapAnnotation