Hi
maybe
abline(0,1)
HTH
Petr
On 19 Jun 2006 at 16:22, priti desai wrote:
Date sent: Mon, 19 Jun 2006 16:22:24 +0530
From: priti desai [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Subject:[R] Qurey : How to add trendline( st.
Try:
library(quantreg)
abline(rq(g ~ f, tau = .999))
On 6/19/06, priti desai [EMAIL PROTECTED] wrote:
How to add trendline (i.e. straight line passing through maximum points)
in graph.
I have worked on the data given below.
Please tell me how to add trendline in the graph.
The script is as
lines(predict(lm(g~f))~f,lty=2)
or if its a curvy line you're looking for...
lines(predict(loess(g~f))~f,lty=3)
On 19/06/06, priti desai [EMAIL PROTECTED] wrote:
How to add trendline (i.e. straight line passing through maximum points)
in graph.
I have worked on the data given below.
Please
One other item. You had asked for the trendline passing through the
maximum points, which is what my prior answer gives, but
others interpreted your question as just as ordinary trendline so if that
is what you are looking for try this:
abline(lm(g ~ f))
On 6/19/06, Gabor Grothendieck [EMAIL