Re: [R] problem with heatmap.2

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Fri, 15 Feb 2008 10:09:52 +0100

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.



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. Received on Fri 15 Feb 2008 - 09:13:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 15 Feb 2008 - 09:30:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive