Skip to content
Prev 65194 / 398506 Next

lattice -- panel order display

I do the following:

test$year <- factor (test$year , ordered = TRUE)
xyplot ( number~cm | year, data = test , type = "l" )

and still get the same.


Luis
Luis Ridao Cruz allegedly said on 3/1/2005 8:50 AM:
by
(in
same
Luis,

You should set test$year as ?ordered:

# set `levels' to the order you want the panels to appear
test$year <- ordered(test$year, levels = .......)
xyplot ( number ~ cm | year , data = test)

--sundar