ccHeatmapLink {circlizePlus} | R Documentation |
Draw a link between two matrix rows in the circular heatmap
Description
Object ccHeatmapLink will call the function circlize::circos.heatmap.link while drawing.
Usage
ccHeatmapLink(row_from, row_to, ...)
Arguments
row_from |
The row index where the link starts. The value should be length 1. If you want to draw multiple links, put the function in a |
row_to |
The row index where the link ends. |
... |
Pass to |
Value
Object ccHeatmapLink
Examples
library(circlizePlus)
set.seed(123)
mat = matrix(rnorm(100*10), nrow = 100)
rownames(mat) = paste0("R", 1:100)
col_fun = colorRamp2(c(-2, 0, 2), c("blue", "white", "red"))
cc = ccHeatmap(mat, col = col_fun, rownames.side = "outside")
link1 = ccHeatmapLink(10, 60)
cc + link1
[Package circlizePlus version 0.9.1 Index]