[R] ggplot2: "varwidth"-equivalent for geom_boxplot?

hadley wickham h.wickham at gmail.com
Thu Mar 11 20:07:17 CET 2010


No this currently isn't possible - it would require changes to
stat_boxplot to work.

Hadley

On Wed, Mar 10, 2010 at 9:12 AM, Johannes Graumann
<johannes_graumann at web.de> wrote:
> Apologies.
>
> from the "boxplot" documentation:
> "... if varwidth is TRUE, the boxes are drawn with widths proportional to the
> square-roots of the number of observations in the groups."
>
> I find this option often very useful.
>
> Thanks for any insight into how to achieve this with geom_boxplot.
>
> Joh
>
> On Wednesday 10 March 2010 16:12:49 hadley wickham wrote:
>> What is varwidth?
>>
>> Hadley
>>
>> On Wed, Mar 10, 2010 at 1:55 PM, Johannes Graumann
>>
>> <johannes_graumann at web.de> wrote:
>> > Hi,
>> >
>> > Is there such a thing? If no: is it easily simulated?
>> >
>> > thanks, Joh
>> >
>> > ______________________________________________
>> > R-help at r-project.org mailing list
>> > https://stat.ethz.ch/mailman/listinfo/r-help
>> > PLEASE do read the posting guide
>> > http://www.R-project.org/posting-guide.html and provide commented,
>> > minimal, self-contained, reproducible code.
>>
>



-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



More information about the R-help mailing list