Re: [R] plotting GAM

From: Sean O'Riordain <sean.oriordain_at_gmail.com>
Date: Thu 25 Aug 2005 - 03:11:47 EST

Emil,
I've no clue what gam() does nor how it works, but saying that is it possible to use lines(,lwd=???) in someway and plot on top of the original line?

cheers,
Sean

On 24/08/05, Tkadlec Emil <tkadlec@prfnw.upol.cz> wrote:
> Sear Sean,
> here is the more working example (I use the latest version of everything
> on my PC):
>
> x1<-runif(100,-5,5)
> x2<-runif(100,1,50)
> e<-rnorm(100)
> y<-.3*x1-0.5*x2+e
>
> mod<-gam(y~s(x1)+s(x2))
> par(mfrow=c(1,2))
> plot(mod,residuals=T,se=T)
> --------
> So you get two figs. My concern is to enlarge the regression line, not the
> point or enything else.
> Best,
> Emil
>
>
>
> > Hi Emil,
> > can you give us a working example of what you're trying to do?
> >
> > cheers!
> > Sean
> >
> > ps. as per the posting-guide... :-)
> >
> > On 24/08/05, Tkadlec Emil <tkadlec@prfnw.upol.cz> wrote:
> > > Dear colleagues,
> > > I would like to have GAM regression lines (package gam) thicker than
> > > the default setting does. Is there any way to change the width of
> > > regression line when plotting gam.objects from the package GAM with
> > > more than one predictor? Changing lwd parameter in plot function
> > > controls all line components, including points making them thicker
> > > as well, which is not what I would like to have. Thanks for help.
> > > Best, Emil
> > >
> > > **************************************************************
> > > Emil Tkadlec
> > > Palacky University PrF UP
> > > Faculty of Science katedra ekologie
> > > Department of Ecology tr. Svobody 26
> > > tr. Svobody 26 771 46 OLOMOUC
> > > 771 46 Olomouc tel. 58 563 4561
> > > Czech Republic
> > > email: tkadlec@prfnw.upol.cz
> > >
> > > ______________________________________________
> > > R-help@stat.math.ethz.ch mailing list
> > > https://stat.ethz.ch/mailman/listinfo/r-help
> > > PLEASE do read the posting guide!
> > > http://www.R-project.org/posting-guide.html
> > >
>
>
> **************************************************************
> Emil Tkadlec
> Palacky University PrF UP
> Faculty of Science katedra ekologie
> Department of Ecology tr. Svobody 26
> tr. Svobody 26 771 46 OLOMOUC
> 771 46 Olomouc tel. 58 563 4561
> Czech Republic
> email: tkadlec@prfnw.upol.cz
> **************************************************************
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Aug 25 03:19:40 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:50:15 EST