[R-gregmisc-users] SF.net SVN: r-gregmisc:[1731] trunk/gplots/R/overplot.R
Brought to you by:
warnes
From: <wa...@us...> - 2013-10-11 22:06:22
|
Revision: 1731 http://sourceforge.net/p/r-gregmisc/code/1731 Author: warnes Date: 2013-10-11 22:06:20 +0000 (Fri, 11 Oct 2013) Log Message: ----------- Fix error when a subgroup contains no finite values Modified Paths: -------------- trunk/gplots/R/overplot.R Modified: trunk/gplots/R/overplot.R =================================================================== --- trunk/gplots/R/overplot.R 2013-10-11 21:20:55 UTC (rev 1730) +++ trunk/gplots/R/overplot.R 2013-10-11 22:06:20 UTC (rev 1731) @@ -151,6 +151,10 @@ mycall$lty = i tmp.y <- y[mycall$subset & cond==level] + + ## If nothing to plot, skip to next level + if(!any(is.finite(tmp.y))) next + min.tmp.y <- min(tmp.y, na.rm=TRUE) max.tmp.y <- max(tmp.y, na.rm=TRUE) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |