[R] what the problem could be if i am suddenly unable to add abline to the scatter plot?
daniel at umd.edu
Wed May 12 19:38:52 CEST 2010
Xin, you plot the scatterplot wrongly.
Note that the lm (your OLS regression) has a wiggle, whereas you plot
command has a comma. The plot command also should have a wiggle so that you
plot y against x and not x against y. See example below:
#This is wrong)
#This is right
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-tp2196304p2196469.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help