[R] axes in boxplots

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Feb 2 18:19:53 CET 2004

David Andel wrote:

> Hi
> I am struggling with controlling the axes of boxplots. I need to produce 
> two horizontal boxplots with the same x-axis for comparison purposes.
> But when I generate a plot(c(-12,8), c(-6,1), type="n") first, then the 
> following boxplot always overwrites it! I went into the code of 
> boxplot.default, but even that without success.
> Thanks for any hint!

  boxplot(dat1, dat2, horizontal=TRUE)
plots 2 parallel boxplots of dat1 and dat2 respectively.

Uwe Ligges

More information about the R-help mailing list