Re: [Rd] bug in xyplot xlab, etc (PR#7076)

From: <deepayan_at_stat.wisc.edu>
Date: Sun 11 Jul 2004 - 22:53:24 EST


On Saturday 10 July 2004 16:28, rmh@temple.edu wrote:

> This looks to me like a bug in xyplot and friends. I anticipated
> that all three of these xyplot statements would work. This is based
> on the documentation line
>
> > The 'label' tag can be omitted if it is the first element of the
> > list.
> >
> > x <- 1:10
> > y <- 1:10
> > xyplot(y ~ x, xlab=list("abcd", cex=2)) ## works as intended
> > xyplot(y ~ x, xlab=list(label="abcd")) ## works as intended
> > xyplot(y ~ x, xlab=list("abcd")) ## error message
>
> Error in if (is.list(label) && names(label)[1] == "") label[[1]] else
> default.label : missing value where TRUE/FALSE needed

Evidently, this is due to my (unreasonable) expectation that names(list("abcd")) would be "". I'll fix that.

Deepayan



R-devel@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel Received on Sun Jul 11 22:57:13 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:01 EST