[R] [R]: Trellis plot
E. Corda
e.corda at oncfs.gouv.fr
Tue Jan 28 09:07:02 CET 2003
Hello everybody,
I have found the solution to my problem. Instead of writing
> plot(mydata, outer = ~ treatment)
I should write
> plot(mydata, outer = ~ mydata$treatment)
>"E. Corda" <e.corda at oncfs.gouv.fr> writes:
>
>> I would be grateful if anyone could help me with the following. I am using
>> nlme library and I am trying to do a trellis plot with an outer factor, but
>> I have an error message which I can't understand.
>>
>> Here is the code :
>>
>> > mydata <- groupedData(y ~ x | warren/rabbit, outer= ~ treatment,
>> data=mydata)
>> > plot(mydata)
>> # I obtain a plot with all rabbits displayed individually and no outer
factor.
>> > plot(mydata, outer = ~ treatment)
>> Error in order(na.last, decreasing, ...) :
>> Argument lengths differ
>>
>> I use R 1.5.1 with Windows 2000.
>
>Could you upgrade to R-1.6.2 and try again? There were a lot of
>changes to the nlme package since R version 1.5.1. I'm not sure if
>this specific problem was fixed but it may have been.
>
>
Eve CORDA
Office national de la chasse et de la faune sauvage
5, rue de Saint Thibault
SAINT-BENOIST
78610 AUFFARGIS
BP 20 - 78612 LE PERRAY EN YVELINES Cedex
FRANCE
Tel : +33 (0)1.30.46.60.64
Fax : +33 (0)1.30.46.60.99
Email : e.corda at oncfs.gouv.fr
More information about the R-help
mailing list