[R] Graphing question/possibly lattice/xyplot

From: Erin Hodgess <hodgess_at_gator.uhd.edu>
Date: Thu 03 Mar 2005 - 09:24:49 EST

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,
Erin Hodgess
mailto: hodgess@gator.uhd.edu

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Mar 03 09:52:56 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:39 EST