[R] Boxplot and range of x-axis

Sean O'Riordain sean.oriordain at gmail.com
Thu May 11 15:24:05 CEST 2006


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 at 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 at 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
>




More information about the R-help mailing list