From sego at vt.edu  Tue Aug 29 17:43:03 2006
From: sego at vt.edu (sego at vt.edu)
Date: Tue, 29 Aug 2006 17:43:03 +0200 (CEST)
Subject: [Rd] arguments to boxplot( ) not passed to bxp() (PR#9183)
Message-ID: <20060829154303.7C00E28EB7@slim.kubism.ku.dk>

Full_Name: Landon Sego
Version: 2.3.1
OS: Windows
Submission from: (NULL) (130.20.54.241)


# When calling boxplot(), shouldn't the "axes" and "frame.plot"
# arguments get passed down to bxp()?  

# Two examples where the "frame.plot" and "axes" arguments
# don't seem to work the way one would anticipate:
X <- data.frame(x=as.factor(rep(c(1,2,3), 10)), y=rnorm(30))

# Removes the axes, but doesn't frame the plot
boxplot(y~x, data=X, axes=FALSE, frame.plot=TRUE)  

# Both axes and frame are present
boxplot(y~x, data=X, axes=TRUE, frame.plot=FALSE)  

# However, if we explictly use bxp(), the arguments work as
# we would expect:
Y <- boxplot(y~x, data=X, plot=FALSE)

# Frames plot and no axes
bxp(Y, frame.plot=TRUE, axes=FALSE)

# Produces axes with no frame
bxp(Y, frame.plot=FALSE)

# If I'm mistaken (or misinformed) and this isn't a bug,
# please accept my apologies in advance.




[Rd] arguments to boxplot( ) not passed to bxp() (PR#9183)
sego at vt.edu