本文介绍了如何在R-一次创建一行热图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是R的新手,正在尝试生成热图作为管道的一部分,稍后将把热图与代谢途径相关联.我在Excel文件中的数据格式如下:
I'm new to R and am trying to generate a heatmap as part of a pipeline that will later on associate the heatmap with metabolic pathways.I have data in an excel file in the following form:
tissue1 tissue2 tissue3 ...
gene1 5 3 1
gene2 120 400 70
gene3 0 3 0
...
我的目标是要拥有某种可以调用的函数或方法,它只会为适当的行生成热图,例如heatmap(gene2).我大约有800行.我希望每个热图都有一个独立的比例尺(其他行分别为indep)有可能吗?
My goal is to have some kind of a function or method I can call and it will only generate a heat map for the appropriate row, something like heatmap(gene2). I have roughly 800 rows. I want each heatmap to have an independent scale (indep on the other rows)Is it possible?
谢谢! :)
推荐答案
包含人工数据(如果您要这样做的话).
with artificial data, if this is what you want.
x=matrix(abs(rnorm(100))*100,10,10,)
image(as.matrix(x[1,]))
这篇关于如何在R-一次创建一行热图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!