[R] graphics

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Oct 9 18:24:54 CEST 2001



Thomas Nittner wrote:
> 
> Hello helpteam,
> 
> I would like to generate graphics within
> a loop which then should be one file.
> 
> For example, for each simulation I want
> to draw the estimated regression line;
> the resulting graphic should contain
> one line for each loop.
> 
> Could you send me the syntax?

What about

 plot(...)
 for(...){
  ...
  my.lm <- lm(...)
  abline(my.lm)
 }

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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