rnassar@duke.edu
2001-Dec-10 02:47 UTC
[Rd] boxplot labels incorrect when horizontal = TRUE (PR#1207)
#Example: y <- rnorm(10) group <- gl(2,5) plot(y ~ group, horizontal = TRUE) # BUG: default xlab & ylab interchanged plot(y ~ group, horizontal = FALSE) # OK: supplies correct default xlab & ylab # Using boxplot() instead of plot() omits default axis labels altogether # (not sure if this is intentional): boxplot(y ~ group, horizontal = FALSE) # no default axis labels supplied boxplot(y ~ group, horizontal = TRUE) # no default axis labels supplied Thank you! Rashid Nassar --please do not edit the information below-- Version: platform = i586-pc-linux-gnu arch = i586 os = linux-gnu system = i586, linux-gnu status = major = 1 minor = 3.1 year = 2001 month = 08 day = 31 language = R Search Path: .GlobalEnv, Shoes, package:nls, package:nlme, package:ctest, Autoloads, package:base -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
ripley@stats.ox.ac.uk
2001-Dec-10 07:41 UTC
[Rd] boxplot labels incorrect when horizontal = TRUE (PR#1207)
On Mon, 10 Dec 2001 rnassar@duke.edu wrote:> #Example: > > y <- rnorm(10) > group <- gl(2,5) > > plot(y ~ group, horizontal = TRUE) # BUG: default xlab & ylab interchanged > plot(y ~ group, horizontal = FALSE) # OK: supplies correct default xlab & ylabUm. That's plot.formula, not boxplot. horizontal = TRUE is *not* a documented argument to plot.formula. If you pass arguments to boxplot through ... (rather than just par values), you may well get unexpected results. To fix this needs plot.formula to recognize horizontal, and that's an API change which I don't advocate during feature freeze. Generally, not doing something which is not documented to happen is not a bug, so I'll put this on the wishlist.> # Using boxplot() instead of plot() omits default axis labels altogether > # (not sure if this is intentional): > > boxplot(y ~ group, horizontal = FALSE) # no default axis labels supplied > boxplot(y ~ group, horizontal = TRUE) # no default axis labels suppliedYes, it's intentional. You can always use title(). -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._