r中gglot怎么组合多张图_如何将信号图中使用R的几个热图组合起来

我已经用函数pheatmap创建了36个热图,并且我只想用一个数字来显示它们。我试图使用函数par(),但它不起作用,我不知道为什么。有人能告诉我该怎么办?非常感谢你。这是我的代码:

require(graphics);require(grDevices);library("pheatmap", lib.loc="D:/Program Files/R/R-3.1.1/library");library(gplots)

filenames

filename2

par(mfrow=c(18,2)) #divide the graphics windows into a 18x2 matrix

for(i in 1:length(filename2)){

rt

size=dim(rt) # the dimensional of the datafram

cw=400/size[1] #the width of the cell in the heatmap

rt

x

pheatmap(x,color=greenred(256),main=filename2[i],cluster_rows = F, cluster_cols = T,cellwidth = cw, cellheight = 60,border_color =F,fontsize = 8,fontsize_col = 15)}这是一个数据集

ScaBER 5637

1 1.010001e+02

1.341186e+00 2.505067e+01

1.669456e+01 8.834190e+01

7.141351e+00 3.897474e+01

1.585592e+04 5.858210e+04

1 3.137979e+01

1.498863e+01 7.694948e+01

1.115443e+02 3.642917e+02

1.157677e+01 5.036716e+01

4.926492e+02 8.642784e+03

3.047117e+00 1.872154e+01我有这样的36个txt文件,但我不能把它们全部放在这里

“Scaber 5637”是此数据集的列名称

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值