Re: [R] color in xyplot

2013-01-11 Thread David Winsemius
On Jan 11, 2013, at 8:38 PM, Elaine Kuo wrote: Hello I want to draw a xyplot. Its dots will have three colors: red for meat, green for vegetable, and blue for both. I used the code below but could not make the dot in the same group show the same color. Please kindly advise how to modify

[R] color in xyplot

2013-01-11 Thread Elaine Kuo
Hello I want to draw a xyplot. Its dots will have three colors: red for meat, green for vegetable, and blue for both. I used the code below but could not make the dot in the same group show the same color. Please kindly advise how to modify it. Thank you. code library (lattice) diet.code <- c(