[R] Setting variable main in plot-function

From: T Petersen <Innkeyp-r_at_yahoo.com>
Date: Fri 11 Mar 2005 - 10:50:16 EST


I am plotting the residuals of z like this


and I want the title of the graph to be

main="Residuals from regression [name of regression]"

where in this case "z" is the name of the regression. Is there a way to automaticall put the name of the regression in the title, e.g if the regressions name changes to "y", the title changes accordingly?

Regards T Petersen

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 Fri Mar 11 13:57:30 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:42 EST