Article View: sci.stat.edu
Article #3Re: simple Splus question - plot regression function
From: Anon.
Date: Tue, 04 Dec 2001 07:44
Date: Tue, 04 Dec 2001 07:44
44 lines
2466 bytes
2466 bytes
Alexander Sirotkin wrote: > > Hi. > > After fitting a linear regression model I need to do an extremely > simple thing - plot the regression function along with the original > data. Splus has a simple way to plot quite a few complex plots and > a very complicated way to do this simple one ! > > Is there a simple way to plot the regression function and the data ? abline! e.g. reg1 <- lm(y~x) plot(x,y) abline(reg1) I can do naught more than suggest reading Venables & Ripley's Modern Applied Statistics with S-plus. And seeing as this is going to and Aussie NG, I suspect by doing this I'll warm the cockles of the heart of at least one of the authors. Bob -- Bob O'Hara Metapopulation Research Group Division of Population Biology Department of Ecology and Systematics PO Box 17 (Arkadiankatu 7) FIN-00014 University of Helsinki Finland NOTE: NEW TELEPHONE NUMBER tel: +358 9 191 28779 fax: +358 9 191 28701 email: bob.ohara@helsinki.fi To induce catatonia, visit: http://www.helsinki.fi/science/metapop/ It is being said of a certain poet, that though he tortures the English language, he has still never yet succeeded in forcing it to reveal his meaning - Beachcomber
Technical Details
Message-ID:
<3C0C7EC0.8932D480@helsinki.fi>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.131.157.171!newsfeed1.wineasy.se!newsfeed.song.fi!news.cc.tut.fi!news.helsinki.fi!not-for-mailReferences:
<dd39f296.0112031208.214b4e2b@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d632,cd670a44db2abd5c X-Google-Attributes: gid10d632,public X-Google-Thread: fa931,cd670a44db2abd5c X-Google-Attributes: gidfa931,public X-Google-Thread: f732f,cd670a44db2abd5c X-Google-Attributes: gidf732f,public X-Google-ArrivalTime: 2001-12-03 23:45:42 PST From: "Anon." <bob.ohara@helsinki.fi> Newsgroups: sci.stat.edu,sci.stat.math,aus.stats.s Subject: Re: simple Splus question - plot regression function Date: Tue, 04 Dec 2001 09:44:00 +0200 Organization: MPRG Lines: 44 Message-ID: <3C0C7EC0.8932D480@helsinki.fi> References: <dd39f296.0112031208.214b4e2b@posting.google.com> NNTP-Posting-Host: tapesia.pc.helsinki.fi Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: oravannahka.helsinki.fi 1007451941 27637 128.214.62.61 (4 Dec 2001 07:45:41 GMT) X-Complaints-To: usenet@news.helsinki.fi NNTP-Posting-Date: 4 Dec 2001 07:45:41 GMT X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.131.157.171!newsfeed1.wineasy.se!newsfeed.song.fi!news.cc.tut.fi!news.helsinki.fi!not-for-mail