Reputation: 165
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
...
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?
Thanks! :)
Upvotes: 1
Views: 1183
Reputation: 3711
with artificial data, if this is what you want.
x=matrix(abs(rnorm(100))*100,10,10,)
image(as.matrix(x[1,]))
Upvotes: 2