I am using heatmap.2 function from the gplots library to plot a heatmap. I managed to create the heatmap but have few questions regarding the axis. I wanted the heatmap to show only selected values of the axis. Please refer the heatmap imaged attached below. I would like to know how can I only display points like X76.100, X176.200, X276.300 etc on X axis and Y76.100, Y176.200, Y276.300 on Y axis, while hiding the other points on both axis.
Please let me know if the question needs more clarification.
Code that I have used so far:
library(gplots)
file=read.table("Heatfile25.txt", sep="\t", header=TRUE, row.names=1)
file[is.na(file)]<-0
data_matrix<-as.matrix(file)
heatmap.2(data_matrix, scale="none",dendrogram="none", col=grey(seq(1,0,-0.01)),
trace="none", Rowv=NA, Colv=NA, main="PB2 VS PB1")
Thanks