Skip to contents

Build block panel function

Usage

annotation_block_graphics(
  subplot,
  name,
  border = TRUE,
  border_color = "black",
  border_size = 1
)

Arguments

subplot

A single drawable subplot object.

name

A name assigned to the generated grob.

border

Whether to draw a rectangle border around the block.

border_color

Border color when border = TRUE. Default is "black".

border_size

Border line width when border = TRUE. Default is 1.

Value

A function with signature (index, levels) suitable for panel_fun in ComplexHeatmap::anno_block.