I am using R (3.0.1) and ggplot2 (ggplot2_0.9.3.1) with geom_tile and scale_fill_gradient. I am using the \'limits\' opti
ggplot2
geom_tile
scale_fill_gradient
limits
Add the argument na.value="transparent" to scale_fill_gradient:
na.value="transparent"
p + theme_bw() + geom_tile(aes(fill=z)) + scale_fill_gradient(low="green", high="red", limits=c(-0.1, 0.1), na.value="transparent")