We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hello my code as follows:
Heatmap(expr, col = colorRamp2(c(-5,0,5), c("navy","#F2F2F2","firebrick3")), cluster_rows = F, cluster_columns = F, na_col = "white", column_split = factor(anno$module), row_split = gene_group$module, column_title_rot = 90, column_gap = unit(0.5, "mm"), row_gap = unit(0.5, "mm"), # column_title=NULL, # row_title=NULL, border = F, use_raster = T, heatmap_legend_param = list(title = "expr", at = seq(-4, 4, 2),color_bar = "continuous"), top_annotation = ha, layer_fun = function(j, i, x, y, width, height, fill){ v = pindex(expr, i, j) if(min(i)==min(j)){ grid.rect(gp = gpar(lwd = 1, fill = "transparent" ,col="black",lty=2)) } }, show_column_names = F, show_row_names = F)
and I get this fig
However My ideal result would be like this
How Do I modify this code?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
hello
my code as follows:
Heatmap(expr,
col = colorRamp2(c(-5,0,5), c("navy","#F2F2F2","firebrick3")),
cluster_rows = F,
cluster_columns = F,
na_col = "white",
column_split = factor(anno$module),
row_split = gene_group$module,
column_title_rot = 90,
column_gap = unit(0.5, "mm"),
row_gap = unit(0.5, "mm"),
# column_title=NULL,
# row_title=NULL,
border = F,
use_raster = T,
heatmap_legend_param = list(title = "expr", at = seq(-4, 4, 2),color_bar = "continuous"),
top_annotation = ha,
layer_fun = function(j, i, x, y, width, height, fill){
v = pindex(expr, i, j)
if(min(i)==min(j)){
grid.rect(gp = gpar(lwd = 1, fill = "transparent" ,col="black",lty=2))
}
},
show_column_names = F,
show_row_names = F)
and I get this fig
![fig1](https://private-user-images.githubusercontent.com/114064141/321145891-43f47850-8d04-4275-a33a-9cfd1f1f5627.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkwMDg5OTUsIm5iZiI6MTcxOTAwODY5NSwicGF0aCI6Ii8xMTQwNjQxNDEvMzIxMTQ1ODkxLTQzZjQ3ODUwLThkMDQtNDI3NS1hMzNhLTljZmQxZjFmNTYyNy5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyMVQyMjI0NTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YTIyOWNiOThmMmY4MWFkYzhiMjk4NTg4YjFlZDM3ODdkNjI4OWYwNGZhMDYzMjAyMTJjY2QzMTk4MGIxODQ4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.QQE06Lzrpd_yryP-jEklYkvpMwOrMpjxHn4qYgBNaoA)
However My ideal result would be like this
![fig2](https://private-user-images.githubusercontent.com/114064141/321146741-f273afd7-9611-465a-b27d-721c34b3f9ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkwMDg5OTUsIm5iZiI6MTcxOTAwODY5NSwicGF0aCI6Ii8xMTQwNjQxNDEvMzIxMTQ2NzQxLWYyNzNhZmQ3LTk2MTEtNDY1YS1iMjdkLTcyMWMzNGIzZjljZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyMVQyMjI0NTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNTEzOGYzNjllNjc2NDVjOTBmNzhiMmYwMjdmYmU2MWM5OWNlMDI3NDlhZjBhOWE5YmIxNTliYWFjZTgxNTVhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.EhxH1uc5tA61eJTRI6Yxs1KnaeQ407R7deMlOPlDoIk)
How Do I modify this code?
The text was updated successfully, but these errors were encountered: