Re: [R] plot of all.effects object

2008-09-11 Thread John Fox
Dear David, > -Original Message- > From: David Afshartous [mailto:[EMAIL PROTECTED] > Sent: September-11-08 4:48 PM > To: John Fox > Cc: r-help@r-project.org > Subject: Re: [R] plot of all.effects object > > > Dear John, > > Thanks and sorry for the

Re: [R] plot of all.effects object

2008-09-11 Thread David Afshartous
Dear John, Thanks and sorry for the typo. For the example below, how do I get the time.num variable to correspond to the x-axis? I tried refitting the model with a different order of supplied variables but this didn't do it. Cheers, David On 9/11/08 4:28 PM, "John Fox" <[EMAIL PROTECTED]>

Re: [R] plot of all.effects object

2008-09-11 Thread John Fox
Dear David, You have to spell the name of term correctly: plot(fm.effects, "time.num:drug:X") (Admittedly, the error message is cryptic: I'll look into that.) A couple of other comments: (1) There is only one high-order term in your model, so it's not necessary to use all.effects(); (2) if you

[R] plot of all.effects object

2008-09-11 Thread David Afshartous
All, I'm trying to plot an all.effects() object, as shown in the help for all.effects and also Crawley's R book (p.178, 2007). The data has a repeated measures structure, but I'm using all.effects for the simple lm() fit here. Below is a reproducible example that yields the error message. fm.