Error in plot.aov() (PR#356)

Prof Brian D Ripley ripley@stats.ox.ac.uk
Thu, 2 Dec 1999 07:30:07 +0000 (GMT)


On Thu, 2 Dec 1999 john.maindonald@anu.edu.au wrote:

> The error occurs following the third Hit <Return> below:
> 
> > y_rnorm(40)
> > gp_factor(rep(1:4,c(10,10,10,10)))
> > xx.aov_aov(y~gp)
> > summary(xx.aov)
>             Df Sum Sq Mean Sq F value Pr(>F)
> gp           3   0.67    0.22    0.29   0.84
> Residuals   36  28.30    0.79               
> > coef(xx.aov)
> (Intercept)         gp2         gp3         gp4 
>    0.286147    0.260974   -0.081828    0.126678 
> > plot(xx.aov)
> Hit <Return> to see next plot: 
> Hit <Return> to see next plot: 
> Hit <Return> to see next plot: 
> Error in as.name(ylab23) : invalid type/length (1/0) in vector allocation

Interesting. There is no plot.aov on my system: this is using plot.lm.  
And I get no error.  It could be random, except this has nothing to do with
the data, only the labelling.

The error message means that ylab23 in NULL. I don't see how that can
happen with the system version of plot.lm.

My guess is masking. Do you have a local plot.lm?  Does this happen if
you start R with --vanilla?

-- 
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._