Hello, I am a newbie to the lattice package in R, and I'm trying to make a plot using the xyplot function. I have repeated measures data (2 conditions) for two different groups of subjects (teens and adults).
So far, I've made a basic graph using xyplot(y ~x, group=subnum, data=mydata, type="b"). Now I would like to make all the teens' lines one color and the adults' another. Additionally, I'd like to reformat the dots so that the points referencing condition 1 and condition 2 are different. Can you help me with this? Thanks! Sarah Sarah Ordaz ord...@upmc.edu<mailto:ord...@upmc.edu> Laboratory of Neurocognitive Development University of Pittsburgh 121 Meyran Avenue Loeffler Building Rm 113 Pittsburgh, PA 15213 412.383.9972 http://www.wpic.pitt.edu/research/lncd/ [[alternative HTML version deleted]] ______________________________________________ R-help@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.