Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

circos.heatmap.link

Draw a link between two matrix rows in the circular heatmap


Description

Draw a link between two matrix rows in the circular heatmap

Usage

circos.heatmap.link(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 for loop.

row_to

The row index where the link ends.

...

Pass to circos.link.

Examples

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"))
circos.heatmap(mat, col = col_fun, rownames.side = "outside")
circos.heatmap.link(10, 60)
circos.clear()

split = sample(letters[1:5], 100, replace = TRUE)
circos.heatmap(mat, col = col_fun, split = split, 
	rownames.side = "outside")
circos.heatmap.link(10, 60)
circos.clear()

circlize

Circular Visualization

v0.4.12
MIT + file LICENSE
Authors
Zuguang Gu
Initial release
2021-1-8

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.