'R - pheatmap - annotations doesnt show

I want to annotate my pheatmap, but the annotations doesn't show and I am not getting any error message.

I used the code below:

anno = t(data.frame(df[,c("disease")]))
ph = pheatmap(df, annotation = anno)
ph

Really appreciate help with this!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source