[R] Auto.key colors maintained when subsetting

2008-07-09 Thread David Afshartous
All, I'm plotting points and lines for various groups. I'd like subsequent plots done on subsets to maintain the color assignments from the original plot. This works fine, but the key for the subset doesn't maintain the correspondence. One solution is to reprint the entire key, but this is

Re: [R] Auto.key colors maintained when subsetting

2008-07-09 Thread David Afshartous
On 7/9/08 1:07 PM, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 7/9/08, David Afshartous [EMAIL PROTECTED] wrote: All, I'm plotting points and lines for various groups. I'd like subsequent plots done on subsets to maintain the color assignments from the original plot. This works

Re: [R] Auto.key colors maintained when subsetting

2008-07-09 Thread Deepayan Sarkar
On 7/9/08, David Afshartous [EMAIL PROTECTED] wrote: On 7/9/08 1:07 PM, Deepayan Sarkar [EMAIL PROTECTED] wrote: On 7/9/08, David Afshartous [EMAIL PROTECTED] wrote: All, I'm plotting points and lines for various groups. I'd like subsequent plots done on subsets to

Re: [R] Auto.key colors maintained when subsetting

2008-07-09 Thread David Afshartous
I've determined that the problem with getting the subsetting to work with the error bars was related to not dropping the unused levels of the Grouping factor. The simplest solution was to follow a combination of Deepayan's suggestions 1 and 2 below, i.e., supply one's own colors and subset