1

コマンドを実行すると:

R-2.14.0/bin/R --slave -f heatmap.R

次のエラーが発生します。

Error in axis(1, 1L:nc, labels = labCol, las = 2, line = -0.5, tick = 0,  :
  X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 9 could not be loaded
Calls: heatmap -> axis
In addition: There were 19 warnings (use warnings() to see them)
Execution halted

heatmap.Rに含まれているコードは次のとおりです。

require(graphics); require(grDevices)
x  <- as.matrix(mtcars)
rc <- rainbow(nrow(x), start=0, end=.3)
cc <- rainbow(ncol(x), start=0, end=.3)
png("heatmap.png", height=1500, width=1500)
heatmap(x, col = cm.colors(256), scale="column",
RowSideColors = rc, ColSideColors = cc, margins=c(5,10),
xlab = "specification variables", ylab= "Car Models")
dev.off()

X11エラーを回避する方法は?どの構成を変更する必要がありますか?

4

2 に答える 2

0

新しくR-baseを再インストールしてバグを修正します

于 2013-01-05T08:30:19.680 に答える
0

同様のエラーがありました:

Error in mtext(plotHeader, cex = 1.6, line = 0.5) :
X11 font -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, face 1 at size 19 could
Execution halted

"cex=1"サイズパラメータを変更することで修正

cexプロットに適切なパラメータを導入して選択してみてください

于 2015-10-22T04:26:30.170 に答える