[R-gregmisc-users] SF.net SVN: r-gregmisc:[1463] trunk/gplots/R/heatmap.2.R
Brought to you by:
warnes
|
From: <wa...@us...> - 2010-12-13 16:44:24
|
Revision: 1463
http://r-gregmisc.svn.sourceforge.net/r-gregmisc/?rev=1463&view=rev
Author: warnes
Date: 2010-12-13 16:44:17 +0000 (Mon, 13 Dec 2010)
Log Message:
-----------
Correct error that arises when data includes NA values, identified by Melissa Key
Modified Paths:
--------------
trunk/gplots/R/heatmap.2.R
Modified: trunk/gplots/R/heatmap.2.R
===================================================================
--- trunk/gplots/R/heatmap.2.R 2010-11-12 19:14:06 UTC (rev 1462)
+++ trunk/gplots/R/heatmap.2.R 2010-12-13 16:44:17 UTC (rev 1463)
@@ -493,8 +493,8 @@
{
max.raw <- max(abs(c(x,breaks)),na.rm=TRUE)
min.raw <- -max.raw
- tmpbreaks[1] <- -max(abs(x))
- tmpbreaks[length(tmpbreaks)] <- max(abs(x))
+ tmpbreaks[1] <- -max(abs(x), na.rm=TRUE)
+ tmpbreaks[length(tmpbreaks)] <- max(abs(x), na.rm=TRUE)
}
else
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|