Hello, I have problem I have a, and b in regression then I can't plot x,y with (and) a, b lines can you help me ? thx [[alternative HTML version deleted]]
Provide reproducible code. And you will get an answer, probably. On Thu, Jan 29, 2009 at 8:29 PM, Edwin Wibisono <edwinwbs at gmail.com> wrote:> Hello, I have problem > I have a, and b in regression > then I can't plot x,y with (and) a, b lines > > can you help me ? > > thx > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Stephen Sefick Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis
Edwin Wibisono wrote:> Hello, I have problem > I have a, and b in regression > then I can't plot x,y with (and) a, b lines > > can you help me ? > > thx > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >I think what you want is something like: x = data.frame(a = runif(100), b = rnorm(100)) lmobj = lm(b~a, x) plot(b~a, x) abline(lmobj) cheers, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +31302535773 Fax: +31302531145 http://intamap.geo.uu.nl/~paul