Build block fill panel function
Usage
annotation_block_fill_graphics(
levels,
palette = NULL,
palcolor = NULL,
fill_values = NULL,
border = TRUE,
border_color = "black",
border_size = 1
)Arguments
- levels
Character/factor levels used as keys for fill mapping.
- palette
Palette name. All available palette names can be queried with show_palettes.
- palcolor
Custom colors used to create a color palette.
- fill_values
Optional named fill vector. Names should match
levels.- border
Whether to draw block border.
- border_color
Border color when
border = TRUE. Default is"black".- border_size
Border line width when
border = TRUE. Default is1.
Value
A function with signature (index, levels) suitable for panel_fun in ComplexHeatmap::anno_block.