I have a file with genomic data for which I am trying to create a heatmap of the data together with a sidebar for the chromosome information. To make the heatmap I converted the numerical values from my file to create a a data matrix that I was then able to plot:
Heatmap <- heatmap.2(DataMatrix, trace="none", col=greenred, key=T, keysize=1.5, labRow=NA, density.info="none", Colv=FALSE)
However, I would like to add an additional color side bar to indicate the chromosome location of the said data. In particular I would like to have just two colors, say "black" if it's from "chrX" or "yellow" from any other chromosome. The column with this information is not in my data matrix and I'm not sure how to include this info into my heatmap. Any help would be greatly appreciated!