[R-gregmisc-users] SF.net SVN: r-gregmisc:[1323] trunk/gplots/R/heatmap.2.R
Brought to you by:
warnes
|
From: <wa...@us...> - 2009-05-08 22:51:25
|
Revision: 1323
http://r-gregmisc.svn.sourceforge.net/r-gregmisc/?rev=1323&view=rev
Author: warnes
Date: 2009-05-08 22:51:07 +0000 (Fri, 08 May 2009)
Log Message:
-----------
heatmap.2: handle NA for RowV or ColV the same way as NULL
Modified Paths:
--------------
trunk/gplots/R/heatmap.2.R
Modified: trunk/gplots/R/heatmap.2.R
===================================================================
--- trunk/gplots/R/heatmap.2.R 2009-05-08 22:35:25 UTC (rev 1322)
+++ trunk/gplots/R/heatmap.2.R 2009-05-08 22:51:07 UTC (rev 1323)
@@ -103,9 +103,9 @@
## key=FALSE
## }
- if ( is.null(Rowv) )
+ if ( is.null(Rowv) || is.na(Rowv) )
Rowv <- FALSE
- if ( is.null(Colv) )
+ if ( is.null(Colv) || is.na(Colv) )
Colv <- FALSE
else if( Colv=="Rowv" && !isTRUE(Rowv) )
Colv <- FALSE
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|