Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • capricy
    Senior Member
    • Apr 2012
    • 125

    heatmap and heatmap.2

    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.
  • rboettcher
    Member
    • Oct 2010
    • 71

    #2
    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é

    Comment

    • capricy
      Senior Member
      • Apr 2012
      • 125

      #3
      Thanks for help

      Comment

      Latest Articles

      Collapse

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      15 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      34 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-02-2026, 12:03 PM
      0 responses
      36 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-02-2026, 11:40 AM
      0 responses
      23 views
      0 reactions
      Last Post SEQadmin2  
      Working...