Re: [R] plot 2 graphs on the same x-y plane

2012-04-10 Thread Tawee Laoitichote
t; Alternatively > > library(ggplot2) > ggplot(dat, aes(x = x, y = y)) + geom_point() + stat_smooth(method = > "lm", color = I("red3")) > > which is perhaps overkill in this situation. > > > Michael > > On Tue, Apr 10, 2012 at 11:03 PM, Tawee

[R] plot 2 graphs on the same x-y plane

2012-04-10 Thread Tawee Laoitichote
hi, I'm doing some data on least square curve fitting. What I like to have is to compare the scatter plot whilst having the fitting curve on the same coordinates. Any suggestting command besides plot(x,y). TaweeMac OSX 10.7.3 [[alternative HTM