Skip to content

graphics

2 messages · Thomas Nittner, Uwe Ligges

#
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?

Thanks a lot,
greetings from Munich,
 
Thomas Nittner
#
Thomas Nittner wrote:
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._