| annotation_block_fill_graphics | R Documentation |
Build block fill panel function
annotation_block_fill_graphics(
levels,
palette = NULL,
palcolor = NULL,
fill_values = NULL,
border = FALSE
)
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 |
border |
Whether to draw block border. |
A function with signature (index, levels) suitable for panel_fun in ComplexHeatmap::anno_block.
library(ggplot2)
lv <- c("A", "B", "C")
panel_fun <- annotation_block_fill_graphics(
levels = lv,
fill_values = c(A = "#1b9e77", B = "#d95f02", C = "#7570b3")
)
ComplexHeatmap::anno_block(panel_fun = panel_fun)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.