# Your mailer is set to "none" (default on Windows), # hence we cannot send the bug report directly from R. # Please copy the bug report (after finishing it) to # your favorite email program and send it to # # r-bugs@r-project.org # ###################################################### 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 messageError in if (is.list(label) && names(label)[1] == "") label[[1]] else default.label : missing value where TRUE/FALSE needed --please do not edit the information below-- Version: platform = i386-pc-mingw32 arch = i386 os = mingw32 system = i386, mingw32 status = major = 1 minor = 9.1 year = 2004 month = 06 day = 21 language = R Windows XP Home Edition (build 2600) Service Pack 1.0 Search Path: .GlobalEnv, file:c:/HOME/rmh/hh/splus.library/HH/.RData, package:methods, package:stats, package:utils, package:multcomp, package:mvtnorm, package:abind, package:graphics, package:lattice, package:grid, Autoloads, package:base
rmh@temple.edu wrote:> # Your mailer is set to "none" (default on Windows), > # hence we cannot send the bug report directly from R. > # Please copy the bug report (after finishing it) to > # your favorite email program and send it to > # > # r-bugs@r-project.org > # > ###################################################### > > > 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 neededLet me also point out that the documentation (?xy.plot from lattice) is like some of those german bureaucreatic documents: ylab Fine control possible, see entry for xlab. xlab Fine control is possible, see entry for sub. sub See entry for main for finer control options. Deepayan might want to point to "main" from all of these .... Best, Uwe BTW: Is it the correct way to submit bug reports on recommended packages to the R's bug repository? Instead, I would have send it to Deepayan as the maintainer of lattice (maybe a point that is not entirely clear from the FAQs: distinguishing contributed, recommended and base package related to bug reports).> --please do not edit the information below-- > > Version: > platform = i386-pc-mingw32 > arch = i386 > os = mingw32 > system = i386, mingw32 > status = > major = 1 > minor = 9.1 > year = 2004 > month = 06 > day = 21 > language = R > > Windows XP Home Edition (build 2600) Service Pack 1.0 > > Search Path: > .GlobalEnv, file:c:/HOME/rmh/hh/splus.library/HH/.RData, package:methods, package:stats, > package:utils, package:multcomp, package:mvtnorm, package:abind, package:graphics, > package:lattice, package:grid, Autoloads, package:base > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
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 neededEvidently, this is due to my (unreasonable) expectation that names(list("abcd")) would be "". I'll fix that. Deepayan
On Sunday 11 July 2004 07:42, Uwe Ligges wrote:> Let me also point out that the documentation (?xy.plot from lattice) > is like some of those german bureaucreatic documents: > > ylab Fine control possible, see entry for xlab. > xlab Fine control is possible, see entry for sub. > sub See entry for main for finer control options. > > Deepayan might want to point to "main" from all of these ....Well, that was my idea of a bad joke. :-( Deepayan