Re: [R] Boxplot width

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Mon, 26 May 2008 11:07:36 +0200

Antje wrote:

> Thanks a lot! That's exactly what I was looking for.
> I still don't have a clue what this "width" is then used for (just for 
> curiosity, if anybody has a short example for me to understand when this 
> is used, let me know...)

try width=c(0.1, 0.9)

Uwe Ligges

> 
> Ciao,
> Antje
> 
> Uwe Ligges schrieb:

>> Folks,
>>
>> ?bxp tells you that "width" is about *relative* widths, hence useless.
>> But it also includes a description of "boxwex" which is the right one
>> to use here:
>>
>> boxplot(l, at=c(length(d1), length(d2)), xlim=c(0,200), boxwex=20)
>>
>>
>> Uwe Ligges
>>
>>
>> Antje wrote:
>>> Hi Bert,
>>>
>>> this is the code I already wrote in my first mail:
>>>
>>> d1 <- rnorm(100)
>>> d2 <- rnorm(150)
>>>
>>> l <- list(d1,d2)
>>> boxplot(l, at=c(length(d1), length(d2)), xlim=c(0,200) )
>>>
>>> Just execute it an see how the boxplots look like.
>>>
>>> I simply don't know how to change the width.
>>>
>>> Compare with:
>>> boxplot(l, at=c(length(d1), length(d2)), xlim=c(0,200),
>>> width=c(2.0,2.0) )
>>>
>>> or
>>>
>>> boxplot(l, at=c(length(d1), length(d2)), xlim=c(0,200), width=c(50,50) )
>>>
>>> nothing changes. So I'm doing something wrong...
>>>
>>> (Jorges answer in no solution at all to this problem... or I miss
>>> something very important...)
>>>
>>>
>>> Antje
>>>
>>>
>>>
>>>
>>> Bert Gunter schrieb:
>>>> Have you checked ?bxp where it tells you that width must be a
>>>> **vector** of
>>>> relative widths?
>>>>
>>>> It would help if you told us **exactly** what you did in the form of
>>>> reproducible code as the posting guide requests (see bottom of this
>>>> message).
>>>>
>>>> -- Bert Gunter
>>>> Genentech
>>>> -----Original Message-----
>>>> From: r-help-bounces_at_r-project.org
>>>> [mailto:r-help-bounces_at_r-project.org] On
>>>> Behalf Of Antje
>>>> Sent: Friday, May 23, 2008 8:52 AM
>>>> To: r-help_at_stat.math.ethz.ch
>>>> Subject: [R] Boxplot width
>>>>
>>>> Hi there,
>>>>
>>>> assume that you have data with different sampling like
>>>>
>>>> d1 <- rnorm(100)
>>>> d2 <- rnorm(150)
>>>>
>>>> now, I'd like to create two boxplots in one graph but each plot
>>>> located at
>>>> the sampling number at the x-axis. This, I can do with "at"
>>>>
>>>> l <- list(d1,d2)
>>>> boxplot(l, at=c(length(d1), length(d2)), xlim=c(0,200) )
>>>>
>>>> but both plots are very thin and I'd like to increase the width of
>>>> the plot.
>>>> I tried "width" but probably I do it wrong.
>>>>
>>>> Can anybody help me?
>>>>
>>>> Antje
>>>>
>>>> ______________________________________________
>>>> 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.
>>>>
>>>>
>>>
>>> ______________________________________________
>>> 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.
>>
>
>

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. Received on Mon 26 May 2008 - 09:12:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 26 May 2008 - 10:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive