[R] Line plot using xyplot function in lattice package

From: Ghosh, Sandeep <sghosh_at_lexgen.com>
Date: Fri 18 Mar 2005 - 06:25:19 EST


Hi All,

For the following data when I use xyplot in package lattice the intervals are in the order of 2, 24, 8, but instead I want them to be in the order 2, 8, 24.

  Treatment Interval value

  A          2  		0.448
  A	       24		1.85
  A          8  		1.166
  B          2  		1.074
  B	       24		1.5
  B          8  		1.065
  C  	       2  		0.854
  C          8  		0.589

The R script is xyplot(value ~ Interval, data=studyData, type='b', groups = Treatment,

Is there a way in xyplot to specify the order?.

-Sandeep

        [[alternative HTML version deleted]]



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 Fri Mar 18 06:31:57 2005

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