David, Thanks for the help. I tried the following code: heatdata <- read.csv("logFC_bin17.csv", sep=",") heatdata <- heatdata[,2:5] heatdata_matrix <- data.matrix(heatdata) rownames(heatdata_matrix) = paste("Gene", 2:655) jpeg("Heatmap_bin17.jpeg", width=8, height=8, units="in", res=300, quality=100) data_heatmap <- heatmap.2(heatdata_matrix, col=redblue(75), scale="row", key=TRUE, symkey=FALSE, density.info="none", trace="none", margins=c(10,10), cexRow=0.5) axis(4, at=1:NROW(heatdata_matrix), labels=rownames(heatdata_matrix[data_heatmap$rowInd] ), cex=0.5) dev.off()
It solved the issue with the jpeg, but I am still getting the following image: <http://r.789695.n4.nabble.com/file/n4648906/Heatmap_bin17.jpeg> The axis labels are still off and now there is this '1' in the upper right hand corner. Thoughts? Courtney -- View this message in context: http://r.789695.n4.nabble.com/Issues-with-Heat-Map-Images-tp4648806p4648906.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.