[Rd] pairs(NxK_Matrix,panel=qqplot) (PR#803)
ripley@stats.ox.ac.uk
ripley@stats.ox.ac.uk
Fri, 5 Jan 2001 22:30:43 +0100 (MET)
On Fri, 5 Jan 2001 mvondavier@ets.org wrote:
> Full_Name: Matthias von Davier
> Version: 1.2.0
> OS: linux
> Submission from: (NULL) (144.81.31.148)
>
>
> pairs(NxK_Matrix,panel=qqplot)
>
> produces a message
>
> Error in pairs.default(NxK_Matrix,panel=qqplot) :
> The panel function made a new plot
And the bug is? I am baffled! Please read the section on BUGS in the FAQ.
Acting as documented is not a bug, nor is giving an error message when a
function is used incorrectly.
A panel function is documented as
panel: `function(x,y,...)' which is used to plot the contents of
each panel of the display.
Note *contents*. I don't think qqplot qualifies, so you get a message
about your error. You probably want (untested)
panel.qqplot <- function(x, y, ...)
{
res <- qqplot(x, y, ..., plot.it = FALSE)
points(res$x, res$y)
}
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._