I have:
library(gplots); x<-matrix(seq(1:100),nrow=10,byrow=TRUE); heatmap.2(x, Rowv=NA, Colv=NA, scale="none", main="This title will be cut off by the white space where the non-existant key is supposed to go.", col=gray((255:0)/255), dendrogram="none",trace="none", key=FALSE);
When the key is specified as FALSE, on the left side of the graph there is a block with white space that prevents the appearance of the full header, conflicts with the manual specification of smaller fields and moves the heat map to the side correctly. The width of the space is controlled using "keysize=#" , but making it too small (somewhere between 0.8 and 1.0) creates an error: "Error in plot.new() : figure margins too large"
I would try to do this using heatmap() instead of heatmap.2() , but the heatmap.2() does not work very well with par() , which I need for the project. If anyone has any suggestions, I would appreciate it.
source share