This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Adding sample sites to sequence percent identity heatmap?

I've created a sequence percent identity heatmap in R studio. How can I add some metadata of which sequences are found in which sample sites, as pictured in the sketch below? I used pheatmap, but I can explore alternative packages that would add this.

Thanks in advance!

enter image description here

heatmap studio dna amplicon r

1 answer

I would go through ComplexHeatmap which is versatile with extensive documentation, or you make both plots separately via ggplot2 and then put them together with something like cowplot or patchwork. For a better answer you'd need to provide example data and code.

Thanks, I was able to figure this out with ComplexHeatmap!

Log in to answer this question.