I plot the same set of data with heatmap and heatmap.2 respectively, and got distinctly different profiles. Anybody could explain this? I know heatmap.2 has extra functions, such as color key; but it looks that its imaging algorithm might also be quite different from heatmap. Is it true? Thanks.
Unconfigured Ad
Collapse
X
-
I noticed the same thing some time ago...
heatmap does not use the same colorkey for every row by default. Instead it performs some weird scaling...
This essentially means that the rows are NOT comparable by means of colour, since the scaling is performed independently for every row.
you can try this very easily with the following commands:
x = c(1:10)
a = cbind(x,x,x,x)
a[1,2] = 100
a[1,3] = 1000
heatmap(a)
Here's what the help says:
"By default (scale = "row") the rows are scaled to have mean zero and standard deviation one. There is some empirical evidence from genomic plotting that this is useful. "
set scale = "none" and your results will be comparable.
heatmap(a,scale="none")
heatmap.2(a,trace="none")
Best regards,
René
Latest Articles
Collapse
-
by SEQadmin2
NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...-
Channel: Articles
10-30-2026, 06:46 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, Yesterday, 07:59 AM
|
0 responses
18 views
0 reactions
|
Last Post
by SEQadmin2
Yesterday, 07:59 AM
|
||
|
Started by SEQadmin2, 11-05-2026, 09:25 AM
|
0 responses
32 views
0 reactions
|
Last Post
by SEQadmin2
11-05-2026, 09:25 AM
|
||
|
Started by SEQadmin2, 11-03-2026, 11:54 AM
|
0 responses
47 views
0 reactions
|
Last Post
by SEQadmin2
11-03-2026, 11:54 AM
|
||
|
Genome Sequencing Reveals Large, Repeat-Rich DNA in Trapdoor Spider Named for Stephen Colbert
by SEQadmin2
Started by SEQadmin2, 10-28-2026, 09:57 AM
|
0 responses
172 views
0 reactions
|
Last Post
by SEQadmin2
10-28-2026, 09:57 AM
|
Comment