How do you add borders onto a heatmap created by the pheatmap R package? -
i creating heatmap using following code:
pheatmap(tissuedata3, color = colorramppalette(rev(c("#d73027", "#fc8d59", "#fee090", "#ffffbf", "#e0f3f8", "#91bfdb", "#4575b4")))(100), cellwidth = 20, cellheight = 2.8, border=true, treeheight_row=0, treeheight_column=0, kmeans_k = na, show_rownames = t, show_colnames = t, fontsize=2, scale="none", clustering_method = "complete", cluster_rows = false, cluster_cols = true, clustering_distance_rows = "euclidean", clustering_distance_cols = "euclidean", legend=true, )
however, resulting heatmap not contain borders. know how add borders cells , heatmap whole?
i think correct parameter border_color
default "grey60", suspected (incorrectly turned out) getting partial name match argument "border" value becomes colors()[1]
[1] "white".
try:
library(pheatmap) pheatmap(tissuedata3, color = colorramppalette(rev(c("#d73027", "#fc8d59", "#fee090", "#ffffbf", "#e0f3f8", "#91bfdb", "#4575b4")))(100), cellwidth = 20, cellheight = 3, # changed 3 border_color="blue", treeheight_row=0, treeheight_column=0, kmeans_k = na, show_rownames = t, show_colnames = t, fontsize=2, scale="none", clustering_method = "complete", cluster_rows = false, cluster_cols = true, clustering_distance_rows = "euclidean", clustering_distance_cols = "euclidean", legend=true )
Comments
Post a Comment