Entering edit mode
3.6 years ago
dias_nathalia
•
0
I would like the clusters to be organized as (c1/c2/c3/c4/c5)
set.seed(123) #set seed for consistency
HM = Heatmap(data, show_row_names = F, show_column_names = T,
row_names_gp = gpar(fontsize = 2),
km = 5,
column_names_side = "bottom", gap = unit(1, "mm"),
column_names_rot = 90,
cluster_columns = F,
show_heatmap_legend = T,
row_title = "c%s",
border = TRUE,
)
HM = draw(HM)
Please use the formatting bar (especially the
code
option) to present your post better. I've done it for you this time.Thank you!