[R] what the problem could be if i am suddenly unable to add abline to the scatter plot?

xin wei xinwei at stat.psu.edu
Wed May 12 17:57:52 CEST 2010


I am doing very regular stuff like the following:


attach(wtana)

fm<- lm(Body.Wt.on.SD1~Heart.Wt, data=wtana)
#fm<- lm(wtana$Body.Wt.on.SD1~wtana$Heart.Wt)
lrf<- loess(Body.Wt.on.SD1~Heart.Wt, wtana)
#lrf<- loess(wtana$Body.Wt.on.SD1~wtana$Heart.Wt)

plot(Body.Wt.on.SD1,Heart.Wt)
#plot(wtana$Body.Wt.on.SD1,wtana$Heart.Wt)
#lines(spline(Heart.Wt,fitted(lrf)), col=2)
abline(fm, col=4)

however, the abline just refuse to to show up in the scatter cloud. 
Does anyone has clue?
thanks


-- 
View this message in context: http://r.789695.n4.nabble.com/what-the-problem-could-be-if-i-am-suddenly-unable-to-add-abline-to-the-scatter-plot-tp2196304p2196304.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list