Re: [R] lattice -- panel order display

From: Luis Ridao Cruz <Luisr_at_frs.fo>
Date: Wed 02 Mar 2005 - 02:53:01 EST

Here is a 'subset' of the ' test ' data .

xyplot ( number ~ cm | as.factor(test$year) , data=test)

> test

    year cm number

34  1995 72     34
35  1995 73     37
36  1995 74     31
37  1995 75     13
38  1995 76     18
39  1995 77      4
40  1995 78     10
41  1995 79      6
42  1995 80      4
43  1995 81      2
44  1995 83      2
45  1995 84      5
46  1995 87      1
47  1996 32      2
48  1996 34      6
49  1996 36      1
50  1996 37     31
51  1996 38     11
52  1996 39     58

53 1996 40 134
54 1996 41 164
55 1996 42 391
94  1997 40      2
95  1997 41      1
96  1997 42      5
97  1997 43     37
142 1998 38      6
143 1998 39      8
144 1998 40     10
145 1998 41     22
146 1998 42     43
191 1999 35      2
192 1999 36     10
193 1999 37      4
194 1999 38     12
195 1999 39     34
196 1999 40     60
239 2000 38      1
240 2000 39      5
241 2000 40      2
242 2000 41      7
243 2000 42     21
284 2001 38      1
285 2001 39      5
286 2001 40      6
287 2001 41     14
288 2001 42     56
289 2001 43     68
332 2002 32      1
333 2002 36     12
334 2002 37      3
335 2002 38      4
336 2002 39     13
386 2003 34      3
387 2003 37      3
388 2003 38      2
389 2003 39      4
390 2003 40     26
391 2003 41     25
392 2003 42     41
393 2003 43     59
438 2004 35      4
439 2004 36      3
440 2004 37      4
441 2004 38     18
442 2004 39     24
443 2004 40     50

>>> Uwe Ligges <ligges@statistik.uni-dortmund.de> 01/03/2005 15:40:15 >>>
Luis Ridao Cruz wrote:

> R-help,
>
> I'm using 'xyplot' in lattice package which plots length frecuencies
by
> year (10).
> The order I get is not logical and the 'index.cond' argument to
> 'xyplot' is a bit cumbersome when it comes to plot a great deal of
(in
> my case years).
>
> I have tried sorting the conditioning variable but still get the
same
> result.
>
> Is there any easy way to do it without making use of 'index.cond' ?
>
> The function call is as follows:
>
> xyplot ( number ~ cm | as.factor(test$year) , data=test)

Not reproducible for us, we don't have "test", so please make your example small and reproducible.

Uwe Ligges

>
> Thanks in advance
>
>
>

>>version

>
> _
> platform i386-pc-mingw32
> arch i386
> os mingw32
> system i386, mingw32
> status
> major 2
> minor 0.1
> year 2004
> month 11
> day 15
> language R
>

> ______________________________________________
> 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

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 Wed Mar 02 03:53:10 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:39 EST