[R] Displaying data in Trellis

slavrenz stevelavrenz at hotmail.com
Wed Apr 18 16:45:53 CEST 2012


This is a question relating to the Trellis function in R. I have a set of
socioeconomic data that I would like to display with the xyplot() function
for several states. I will have a total of 6 plots, with the y-variable as
"Age Group", and the x-variable as "Median Income".

Suitability of the plots aside (this cannot be changed), I need to plot the
points of one of the states in a different color than all the rest, such
that they can be more easily referenced in a presentation. Does anyone know
what I can use for this. I'm guessing that I will have to write my own panel
function, but I am not clear on the best way to do this.

--
View this message in context: http://r.789695.n4.nabble.com/Displaying-data-in-Trellis-tp4567920p4567920.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list