コマンドを実行すると:
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エラーを回避する方法は?どの構成を変更する必要がありますか?