Re: [R] plotting groupedData object

From: Osman Al-Radi <osman.al.radi_at_gmail.com>
Date: Tue 02 May 2006 - 06:38:15 EST

My apologies:

library(nlme)
gd<-groupedData(y~time|subject,outer=~group) plot(gd, outer=T)

this produces a pannel per group with a curve per subject I need in addition to that the mean (or lowess) y in each panel.

thanks

osman

On 5/1/06, Deepayan Sarkar <deepayan.sarkar@gmail.com> wrote:
> On 5/1/06, Osman Al-Radi <osman.al.radi@gmail.com> wrote:
> > Dear R-Help,
> >
> > I am using R2.3.0, nlme library on Windows XP.
> >
> > I created a grouped data object with y, subject, group and time variables.
> >
> > I can plot the data using
> >
> > plot.nfnGroupedData(form=y~time|subject,outer=~group)
> >
> > This gives me individual curves (connected points) for each subject in
> > separate panels for each group.
> >
> > I would also like to add to the plot a curve with the mean y at each time
> > point for each group. how can I do that?
>
> Reproducible example please.
>
> Deepayan
>



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 Tue May 02 06:48:11 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 02 May 2006 - 10:09:56 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.