我从Perl的CGI调用当我把它的工作原理,但在Perl我不能在服务器上使用Rscript myRscript.R从UNIX负载R库似乎能够加载任何包。我得到以下错误(从Apache日志): Error in library(gplots) : there is no package called 'gplots' 使用.libPaths(): > .libPaths()
[1] "/home/
我使用gplots heatmap.2使热图: library(gplots)
# some fake data
m = matrix(c(0,1,2,3), nrow=2, ncol=2)
# make heatmap
hm = heatmap.2(m)
当我做“heatmap.2”直接我得到一个阴谋,我可以输出到设备。我怎样才能从我的变量'hm'重新绘制情节?显然,这是一个玩具的例
我有以下代码执行hiearchical 集群并将它们绘制在热图中。 library(gplots)
set.seed(538)
# generate data
y <- matrix(rnorm(50), 10, 5, dimnames=list(paste("g", 1:10, sep=""), paste("t", 1:5, sep="")))
# the actual data is
我有: 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