'circos.heatmap: not enough space for cells at track index '5'
I am trying to use circos.heatmap function from the circlize package to represent some data and have some difficulties to add more that a certain number of layers.
Please find a reproducible example of my problem
library(circlize)
library(ComplexHeatmap)
library(tidyverse)
library(dplyr)
df_test= data.frame(pp=c(-0.7,-0.6, 0.6, 0.5, 0.4, -0.2, -0.7, -0.6, 0.7),
cc=c(-0.1,0.1, -0.6, 0.5, 0.9, 0.8, -0.7, 0.2, -0.7),
dd=c(1,1,1,0,0,1,1,0,1),
ee=c(0,1,0,0,0,0,1,1,1),
ll=c(1,0,0,1,0,0,0,1,1))
circos.clear()
col_fun1 = colorRamp2(c(-1, 0, 1), c("blue", "white", "red"))
pp= data.frame(df_test$pp)
rownames(pp)= paste0(rep("A", 9), seq(1:9))
cc= data.frame(df_test$cc)
rownames(cc)= paste0(rep("A", 9), seq(1:9))
dd= data.frame(df_test$dd)
rownames(dd)= paste0(rep("A", 9), seq(1:9))
ee= data.frame(df_test$ee)
rownames(ee)= paste0(rep("A", 9), seq(1:9))
ll= data.frame(df_test$ee)
rownames(ll)= paste0(rep("A", 9), seq(1:9))
circos.heatmap(pp, col = col_fun1, cell.border=TRUE, cluster = FALSE)
circos.heatmap(ee, col = col_fun1, cell.border=TRUE, cluster = FALSE)
circos.heatmap(cc, col = col_fun1, cell.border=TRUE, cluster = FALSE)
circos.heatmap(dd, col = col_fun1, cell.border=TRUE, cluster = FALSE)
circos.heatmap(ll, col = col_fun1, cell.border=TRUE, cluster = FALSE)
When I am trying to add the 5th layer I have this following error message:
Erreur : not enough space for cells at track index '5'.
To solve this I would like either to increase the perimeter of the first "circle" or to reduce the heigth of each "circle". I am requesting your help to do both of these two things. If someone have another ideas, I would be happy to read it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

