[R] ylim doesn't work in boxplots?
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Sat Dec 9 01:59:16 CET 2000
s-luppescu at uchicago.edu writes:
> On 08-Dec-2000 Peter Dalgaard BSA wrote:
> > s-luppescu at uchicago.edu writes:
> >
> >> I want to leave a little extra room at the bottom for a legend in a box
> >> plot,
> >> but I find that the boxplot function ignores ylim. Is there any way around
> >> this? Thanks.
> >
> > Eh? I can't reproduce that in neither 1.1.1 nor 1.2pre.
>
> Actually, I'm producing the box plot numbers in boxplot() and then drawing the
> plot with bxp. The help says graphical parameters can be entered as a list
> (pars) or the regular way (...). When I just put in ylim=c(somenumber,
> anothernumber) in bxp() the y axis is unchanged. From looking at the source
> code, it looks like it should work, but....
> I don't know how to use pars. I tried pars=, pars(), but those gave me error
> messages.
Aha. OK I see it.
> bx.p <- boxplot(split(rnorm(100), gl(5,20)))
> bxp(bx.p,ylim=c(-5,5)) # no reaction
> bxp(bx.p,pars=list(ylim=c(-5,5))) # works
This seems to have been fixed for 1.2.0
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list