| annotation_block_graphics | R Documentation |
Build block panel function
annotation_block_graphics(subplot, name, border = TRUE)
subplot |
A single drawable subplot object. |
name |
A name assigned to the generated grob. |
border |
Whether to draw a rectangle border around the block. |
A function with signature (index, levels) suitable for panel_fun in ComplexHeatmap::anno_block.
library(ggplot2)
p <- ggplot2::ggplot(mtcars, ggplot2::aes(wt, mpg)) +
ggplot2::geom_point()
panel_fun <- annotation_block_graphics(
subplot = p, name = "demo-block"
)
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.