I am using PHEATMAP to generate a heatmap - currently the row names and column names defaults to left and bottom - can somebody point me to option where i can change it to RIGHT and TOP.
Unfortunately, you must use ComplexHeatmap - I'm aware OP cannot use CH but posterity for others:
library(pheatmap)
pheatmap(plot_mat, cluster_rows = T, cluster_cols = F,
display_numbers = T, cutree_rows = 3,
color = hcl.colors(50, "sunsetdark", rev=F),
border_color = "black", number_color = "black",
fontsize_number = 9, angle_col = 0)

library(ComplexHeatmap)
ComplexHeatmap::pheatmap(plot_mat, cluster_rows = T, cluster_cols = F,
display_numbers = T, cutree_rows = 3,
color = hcl.colors(50, "sunsetdark", rev=F),
border_color = "black", number_color = "black",
fontsize_number = 9, column_names_side = c("top"),
angle_col = c("0"))

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With