Skip to content
Prev 26396 / 63424 Next

boxplot() confuses x- and y-axes (PR#10345)

On Mon, 2007-10-15 at 10:30 +0200, bob.ohara at helsinki.fi wrote:
Hi Bob,

No, it's not in your head. This is documented in ?bxp, which is the
function that actually does the plotting for boxplot(). See the
description of 'pars' in ?bxp:

"Currently, yaxs and ylim are used ???along the boxplot???, i.e.,
vertically, when horizontal is false, and xlim horizontally."

So essentially, the named 'x' and 'y' axes are rotated 90 degrees when
you use 'horizontal = TRUE', rather than the vertical axis always being
'y' and the horizontal axis always being 'x'. This has been discussed on
the lists previously.

Regards,

Marc Schwartz