From deepayan at stat.wisc.edu  Sun Jul 11 14:53:24 2004
From: deepayan at stat.wisc.edu (deepayan@stat.wisc.edu)
Date: Sun Jul 11 14:53:28 2004
Subject: [Rd] bug in xyplot xlab, etc (PR#7076)
Message-ID: <20040711125324.C4E45EAC3@slim.kubism.ku.dk>

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


[Rd] bug in xyplot xlab, etc (PR#7076)
deepayan@stat.wisc.edu