From h.wickham at gmail.com  Mon Oct 15 21:34:41 2007
From: h.wickham at gmail.com (hadley wickham)
Date: Mon, 15 Oct 2007 14:34:41 -0500
Subject: [Rd] boxplot() confuses x- and y-axes (PR#10345)
In-Reply-To: <20071015162541.31B0F283416A@mail.pubhealth.ku.dk>
References: <20071015162541.31B0F283416A@mail.pubhealth.ku.dk>
Message-ID: <f8e6ff050710151234i2e6e4e7cgd2abad97451f1e72@mail.gmail.com>

> So given the help file, we should consider dropping the whole
> ``along the boxplot'' idea?
>
> {{well, yes, we should drop "traditional graphics" and work with
>   grid-based graphical objects ("grob"s) that can be drawn
>   vertically or horizontally,
>   e.g., in lattice or (most probably) ggplot2
> }}

ggplot2 does this in a completely general way (i.e. for all types of
graphics) with the coord_flip coordinate system, which flips the
interpretation of the x and y scales.  This includes producing
smoothers of x conditional on y, and so forth.

Hadley

-- 
http://had.co.nz/



[Rd] boxplot() confuses x- and y-axes (PR#10345)
hadley wickham