Re: [R] How to write a function in a graph

2006-07-18 Thread Thomas Lumley
On Tue, 18 Jul 2006, junguo liu wrote: > Dear R-ers, > > I conducted a regression analysis, and then intended to add the > regression function (y=4.33+1.07x) in a graph. But the following code > can only give me a text like y=a+bx. Who can help me out? Thank you very > much in advance. This i

[R] How to write a function in a graph

2006-07-18 Thread junguo liu
Dear R-ers, I conducted a regression analysis, and then intended to add the regression function (y=4.33+1.07x) in a graph. But the following code can only give me a text like y=a+bx. Who can help me out? Thank you very much in advance. CODE # Read data x <- c(1, 2, 3, 4, 5