If you look at the heatmap.2 help file , it looks like you want an argument breaks. From the help file:
breaks () , x , , , min (x) ()
, breaks, . :.
library(gplots)
x = matrix(sample(seq(-1,3,by=.1),100,replace=TRUE),ncol=10)
heatmap.2(x, col=redgreen, breaks=c(-1,0.8,1.2,3))
breaks=c(-1,0.8,1.2,3), .