[R] for plots

Julian M Burgos jmburgos at u.washington.edu
Fri Aug 17 16:47:24 CEST 2007


Hi Jim,

You could also use the 'select' argument. For example,

plot(gam.object,se=TRUE,select=1)

will give you the smooth plot for the first variable.

Be sure to read the documentation.  See ?plot.gam for specifics details on plotting gam objects.

Julian


On Fri, 17 Aug 2007, Dieter Menne wrote:

> jim holtman <jholtman <at> gmail.com> writes:
>
>>
>> Turn 'Recording" on for the plots.
>>
>> windows(record=TRUE)
>>
>> or select from the GUI.
>>
>> I mean if the object has several plots how can I
>> get those?
>
>>> "gam.object <- gam(y ~ s(x,6) + z,data=gam.data)
>>> plot(gam.object,se=TRUE)"
>
> Or use something like
>
> par(mfrow=c(3,3))
>
> to avoid paging
>
> Dieter
>
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list