[R] Fayez_how to make the colored panels in lattice xyplot

From: <aziz4_at_illinois.edu>
Date: Mon, 18 Apr 2011 12:34:18 -0500 (CDT)

Hi all,

Consider I am want to lattice.xyplot following car's data for different brands and different gas mileages:

car1 Toyota 40
car2 Toyota 38
car3 Honda 39
car4 Honda 32
car5 Honda 35
car6 Honda 32
car7 Mitsubishi 27
car8 Mitsubishi 34
car9 Mitsubishi 33

Now first I want to make three panels for the three brands.

Secondly, for each brand I want to lattice.xyplot cars against the mileage in a scale from say 25 to 45.

Thirdly, I want to color the different ranges of the scale. For instance, scale-range of mileage from 25 to 30 colored light-red, 31 to 35: light orange, 36 to 40: light blue and so on.

Is it possible to do that in R. Specifically the coloring part in the multi-panels.

Best,
Fayez
Grad Student Bioinformatics
UIUC



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 18 Apr 2011 - 17:55:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 18 Apr 2011 - 19:30:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive