[R] supplying dynamic main argument to plot?

From: Afshartous, David <afshart_at_exchange.sba.miami.edu>
Date: Wed 28 Jun 2006 - 06:19:12 EST


All,  

Simple question but I don't seem to be able to find the answer in the documentation:
When using "plot" within a loop, is there any way to supply the argument to "main" dynamically,
i.e., so that the title is Patient k below as the loop cycles through each value of k?  

plot(x,y, xlim=c(0,250), ylim=c(0,1000), xlab="gamma", ylab="r1", main="Patient k")    

thanks
dave
ps - I'm running windows.     

        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 28 06:18:32 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 28 Jun 2006 - 08:14:00 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.