raivokolde / pheatmap

Pretty heatmaps
225 stars 83 forks source link

Handle cases where all annotation values are missing (i.e. NA). #75

Open T-Heide opened 3 years ago

T-Heide commented 3 years ago

Minor changes as per title.

Also includes a change to make sure that opened pdf device is also closed if there is a error.

T-Heide commented 3 years ago

Example:

d = data.frame(matrix(1:6, nrow = 3)) annot = data.frame(row.names = colnames(d), "Label A" = 1:2, "Label B" = c(NA, NA)) pheatmap::pheatmap(d, annotation_col = annot)

image