[Distr-commits] r1207 - branches/distr-2.8/pkg/distrMod/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jul 20 16:36:26 CEST 2018


Author: ruckdeschel
Date: 2018-07-20 16:36:26 +0200 (Fri, 20 Jul 2018)
New Revision: 1207

Modified:
   branches/distr-2.8/pkg/distrMod/R/qqplot.R
Log:
[distrMod] branch 2.8 unified return value of plot and qqplot 

Modified: branches/distr-2.8/pkg/distrMod/R/qqplot.R
===================================================================
--- branches/distr-2.8/pkg/distrMod/R/qqplot.R	2018-07-20 14:26:22 UTC (rev 1206)
+++ branches/distr-2.8/pkg/distrMod/R/qqplot.R	2018-07-20 14:36:26 UTC (rev 1207)
@@ -296,7 +296,7 @@
         }
        }
     }
-    qqplotInfo <- c(plotInfo, ret, usr=qq.usr, qqplotInfo, qqb)
+    qqplotInfo <- c(plotInfo, ret=ret, usr=qq.usr, qqplotInfo=qqplotInfo, qqb=qqb)
     class(qqplotInfo) <- c("qqplotInfo","DiagnInfo")
     return(invisible(qqplotInfo))
     })
@@ -310,6 +310,15 @@
     ylab = deparse(substitute(y)), ...){
 
     mc <- match.call(call = sys.call(sys.parent(1)))
+    dots <- match.call(call = sys.call(sys.parent(1)),
+                       expand.dots = FALSE)$"..."
+    args0 <- list(x = x, y = y,
+                  n = if(!missing(n)) n else length(x),
+                  withIdLine = withIdLine, withConf = withConf,
+    withConf.pw  = if(!missing(withConf.pw)) withConf.pw else if(!missing(withConf)) withConf else NULL,
+    withConf.sim = if(!missing(withConf.sim)) withConf.sim else if(!missing(withConf)) withConf else NULL,
+                  plot.it = plot.it, xlab = xlab, ylab = ylab)
+
     if(missing(xlab)) mc$xlab <- as.character(deparse(mc$x))
     if(missing(ylab)) mc$ylab <- as.character(deparse(mc$y))
     mcl <- as.list(mc)[-1]
@@ -321,6 +330,8 @@
     retv <- do.call(getMethod("qqplot", signature(x="ANY", y="UnivariateDistribution")),
             args=mcl)
     retv$call <- mc        
+    retv$args <- args0
+    retv$dots <- dots
     return(invisible(retv))
     })
 
@@ -332,6 +343,15 @@
     ylab = deparse(substitute(y)), ...){
 
     mc <- match.call(call = sys.call(sys.parent(1)))
+    dots <- match.call(call = sys.call(sys.parent(1)),
+                       expand.dots = FALSE)$"..."
+    args0 <- list(x = x, y = y,
+                  n = if(!missing(n)) n else length(x),
+                  withIdLine = withIdLine, withConf = withConf,
+    withConf.pw  = if(!missing(withConf.pw)) withConf.pw else if(!missing(withConf)) withConf else NULL,
+    withConf.sim = if(!missing(withConf.sim)) withConf.sim else if(!missing(withConf)) withConf else NULL,
+                  plot.it = plot.it, xlab = xlab, ylab = ylab)
+
     if(missing(xlab)) mc$xlab <- as.character(deparse(mc$x))
     if(missing(ylab)) mc$ylab <- as.character(deparse(mc$y))
     mcl <- as.list(mc)[-1]
@@ -351,7 +371,9 @@
     mcl$y <- PFam0
     retv <- do.call(getMethod("qqplot", signature(x="ANY", y="ProbFamily")),
             args=mcl)
-    retv$call <- mc        
+    retv$call <- mc
+    retv$args <- args0
+    retv$dots <- dots
     return(invisible(retv))
     })
 



More information about the Distr-commits mailing list