Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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


    • #3
      Thanks for help

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Advanced Methods for the Detection of Infectious Disease
        by seqadmin




        The recent pandemic caused worldwide health, economic, and social disruptions with its reverberations still felt today. A key takeaway from this event is the need for accurate and accessible tools for detecting and tracking infectious diseases. Timely identification is essential for early intervention, managing outbreaks, and preventing their spread. This article reviews several valuable tools employed in the detection and surveillance of infectious diseases.
        ...
        11-27-2023, 01:15 PM
      • seqadmin
        Strategies for Investigating the Microbiome
        by seqadmin




        Microbiome research has led to the discovery of important connections to human and environmental health. Sequencing has become a core investigational tool in microbiome research, a subject that we covered during a recent webinar. Our expert speakers shared a number of advancements including improved experimental workflows, research involving transmission dynamics, and invaluable analysis resources. This article recaps their informative presentations, offering insights...
        11-09-2023, 07:02 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 12-05-2023, 02:24 PM
      0 responses
      14 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-05-2023, 07:37 AM
      0 responses
      25 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-04-2023, 08:23 AM
      0 responses
      9 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-01-2023, 09:55 AM
      0 responses
      26 views
      0 likes
      Last Post seqadmin  
      Working...
      X