Re: [R] Lattice xyplot and groups

2010-09-24 Thread Axel
> That would be the logically correct approach. Here are a couple of > ways to specify color: That's perfect! Thank you very much. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://

Re: [R] Lattice xyplot and groups

2010-09-24 Thread Deepayan Sarkar
On Wed, Sep 22, 2010 at 12:21 AM, Axel wrote: > Hi, > > I'm trying to plot many (x, y) data files using the xyplot function > from the lattice package. Each file can be classified by set name (s1, > s2,...) and data type (A, B, ...). Each data set contains a different > number of files. If the dat

Re: [R] Lattice xyplot and groups

2010-09-21 Thread Axel
> Does using > >     df = df[order(df$type,df$set,df$x),] > > before calling xyplot fix the problem? Thank you very much for your suggestion. It does make the lines open, but unfortunately it mixes different id together. With the new ordering the plot looks something like this: (x=-10, y_id1) ->

Re: [R] Lattice xyplot and groups

2010-09-21 Thread Phil Spector
Does using df = df[order(df$type,df$set,df$x),] before calling xyplot fix the problem? - Phil Spector Statistical Computing Facility Department of Statistics

[R] Lattice xyplot and groups

2010-09-21 Thread Axel
Hi, I'm trying to plot many (x, y) data files using the xyplot function from the lattice package. Each file can be classified by set name (s1, s2,...) and data type (A, B, ...). Each data set contains a different number of files. If the data is grouped by type or set and visualized as line plot wi