I'm trying to visually represent "significance" of some numerical results in tidyheatmap -- i.e., display two types of numbers in different ways. I've tried setting, e.g., number_color=ifelse(data$num<0.05, 'red', 'green'), but the positions of the colors don't match the data. I also tried using subset() to remove one set of numbers, which mostly works, but I can't figure out how to remove the "NA"s that are plotted in the remaining space. Am I missing something, or is this an edge case?
FWIW, I absolutely adore tidyHeatmap -- I did a bunch of manual styling in pheatmap and it was a real grind, whereas tidyHeatmap gives beautiful results with very little effort.
I'm trying to visually represent "significance" of some numerical results in tidyheatmap -- i.e., display two types of numbers in different ways. I've tried setting, e.g.,
number_color=ifelse(data$num<0.05, 'red', 'green'), but the positions of the colors don't match the data. I also tried usingsubset()to remove one set of numbers, which mostly works, but I can't figure out how to remove the "NA"s that are plotted in the remaining space. Am I missing something, or is this an edge case?FWIW, I absolutely adore
tidyHeatmap-- I did a bunch of manual styling in pheatmap and it was a real grind, whereas tidyHeatmap gives beautiful results with very little effort.