Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in ComplexHeatmap::anno_block(align_to = align_to, #88

Open
seasonzhao opened this issue Aug 19, 2024 · 1 comment
Open

Error in ComplexHeatmap::anno_block(align_to = align_to, #88

seasonzhao opened this issue Aug 19, 2024 · 1 comment

Comments

@seasonzhao
Copy link

`visCluster(object = ck,
plot.type = "both",
add.sampleanno = F,
markGenes = sample(rownames(mat),30,replace = F))

This palatte have 20 colors!
Error in ComplexHeatmap::anno_block(align_to = align_to, panel_fun = function(index, :
unused arguments (align_to = align_to, panel_fun = function(index, nm) {
npos = as.numeric(unlist(strsplit(nm, split = "C"))[2])
grid::grid.rect(gp = grid::gpar(fill = colanno[npos], col = NA))
if (annnoblock.text == TRUE) {
grid::grid.text(label = paste("n:", length(index), sep = ""), rot = 90, gp = grid::gpar(col = annnoblock.gp[1], fontsize = as.numeric(annnoblock.gp[2])))
}
})`

即使更新ComplexHeatmap的版本还是报错,尝试了各种版本的ComplexHeatmap依旧无法解决

@junjunlab
Copy link
Owner

请安装github上的ComplexHeatmap版本试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants