简体   繁体   English

没有排序和树状图的热图

[英]heatmap without ordering and dendrogram

I have a file with 2 columns and 1 million lines!! 我有一个2列和100万行的文件! I only want to plot them without any ordering because I ordered the data. 我只想在没有任何排序的情况下绘制它们,因为我订购了数据。 How can I make a heatmap with heatmap.2 without any dendrogram and reordering? 如何在没有任何树形图和重新排序的情况下使用heatmap.2制作热图?

when I use 我用的时候

heatmap.2(x, dendrogram="none")

Error: cannot allocate vector of size 4660.6 Gb

but

I tried without "Rowv" 我试过没有"Rowv"

heatmap.2(x, Rowv=FALSE) 

Warning message:
In heatmap.2(x, Rowv = FALSE) :
  Discrepancy: Rowv is FALSE, while dendrogram is `column'. Omitting row dendogram.

I think you have got both arguments there, you just have to put them together. 我认为你有两个论点,你只需将它们放在一起。

# Generate some sample data.
n<-1e6*2
m<-matrix(rnorm(n),ncol=2)
# Plot heatmap without reordering or dendrogram.
heatmap.2(m,dendrogram='none', Rowv=FALSE, Colv=FALSE,trace='none')

在此输入图像描述

It is hard to imagine when it would be useful to plot so much data like this, but perhaps you have something in mind. 很难想象什么时候绘制如此多的数据是有用的,但也许你有一些想法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM