Re: R-beta: adjusting y-axis scale with multiple lines in plot

Peter Dalgaard BSA (p.dalgaard@biostat.ku.dk)
06 May 1998 13:45:06 +0200


To: mjantti@abo.fi
Subject: Re: R-beta: adjusting y-axis scale with multiple lines in plot
From: Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk>
Date: 06 May 1998 13:45:06 +0200
In-Reply-To: mjantti@abo.fi's message of Wed, 6 May 1998 13:29:22 +0300 (EEST)

mjantti@abo.fi writes:

> Or is the procedure to be used to first estimate all densities, the plot
> the first one with 'ylim=c(0,max())' and the add the lines one by one?
> If anyone has pondered on and solved this, I'd be very grateful for the
> solution. 

Yup. That's the general procedure. Some kind of autoscaling would be
nice to have some time in the future, but currently the graphics
model in R (and S-plus) is that of a hardcopy device (e.g. a plotter)
with "no eraser".

There's also the option of using matplot(), although that'll lose the
facilities of plot.density. 

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._