4

私は持っている:

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);

キーが FALSE として指定されている場合、プロットの左側に空白のブロックがあり、完全なタイトルが表示されず、より小さなマージンの手動指定と競合し、ヒートマップが右に移動します。空白の幅は を使用して制御"keysize=#"できますが、小さすぎると (0.8 から 1.0 の間のどこか)、エラーが発生します。"Error in plot.new() : figure margins too large"

heatmap()の代わりにこれを試してみますが、プロジェクトに必要なheatmap.2()ヒートマップはうまく機能しません。par()誰か提案があれば、私はそれを感謝します。

4

1 に答える 1