[R] Graphing question/possibly lattice/xyplot

2005-03-02 Thread Erin Hodgess
Dear R People: I have a data frame with the variables calories, sodium and type, where type is either zero or one. I would like to produce a scatterplot with sodium on the horizontal, calories on the vertical and have the dots be clear when type is one and black when type is zero. It can be

Re: [R] Graphing question/possibly lattice/xyplot

2005-03-02 Thread Deepayan Sarkar
On Wednesday 02 March 2005 16:24, Erin Hodgess wrote: Dear R People: I have a data frame with the variables calories, sodium and type, where type is either zero or one. I would like to produce a scatterplot with sodium on the horizontal, calories on the vertical and have the dots be clear