[R] problem with heatmap.2

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Feb 15 10:09:52 CET 2008



Ng Stanley wrote:
> Hi,
> 
>> temp1[1:6,]
>     AAAA_XXX BBBBBB_XXX CCCCC_XXX DDDDD_XXX  EEEEE_XXX SkHep1_XXX
> 50    0.75285     0.30630  0.56330  0.45755  0.49665    0.74685
> 63    0.35930    -0.22725  0.04725  0.53955  0.56390    0.51170
> 69   -1.57515    -1.67610 -1.61695 -1.11685 -0.00085   -1.89155
> 91    0.84640     0.43595  0.62350  0.46645  0.09430    1.03985
> 136   0.42050     0.42340  0.61730  0.13950 -0.57600    0.82470
> 137   0.40290     0.35105  0.52040  0.00340  0.15235    0.35650
> 
>> heatmap.2(temp1[1:6,])
> Error in heatmap.2(temp1[1:6, ]) : `x' must be a numeric matrix
> 
> What causes the error, and how to resolve ?


Type

  str(temp1)

and find that either the matrix is not numeric or (what I highly 
suspect) that temp1 is a data.frame rather than a matrix.

Best,
Uwe Ligges




> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list