Re: [R] Boxplot and range of x-axis

From: Sean O'Riordain <sean.oriordain_at_gmail.com>
Date: Thu 11 May 2006 - 23:24:05 EST

Hi Rainer,

boxplot(liste1,ylim=c(1,6))
boxplot(liste2,ylim=c(1,6))

or would you prefer

boxplot(liste1,liste2)

cheers,
S/

On 11/05/06, Rainer Hahnekamp <rainer.hahnekamp@aon.at> wrote:
> Hello there,
>
> could somebody help me with this: I have to create a lot of boxplots but
> with same range concerning the x-axis.
> For example I have following data:
> liste1 <- c(3,4,5,3,3,4,4)
> liste2 <- c(1,2,3,4,6)
> png(file = "liste1.png")
> boxplot(liste1)
> png(file = "liste2.png")
> boxplot(liste2)
> q()
>
> Works perfectly, but what I need would be that both boxplots have their
> x-axis from 1-6.
>
> Hopefully you could give me a hint.B
>
> Greetings,
> -Rainer Hahnekamp
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu May 11 23:28:00 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 12 May 2006 - 00:10:04 EST.

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