[R] Graphing question/possibly lattice/xyplot

Erin Hodgess hodgess at gator.uhd.edu
Wed Mar 2 23:24:49 CET 2005


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 done via lines and points, but I was wondering if there is a
better way with lattice graphics.

Thanks in advance,
Sincerely,
Erin Hodgess
mailto: hodgess at gator.uhd.edu




More information about the R-help mailing list