Hello,

I am trying to create individual concentration-time spaghetti plots sorted
by dose, and within each dose to show two different colors for a
categorical variable (gender).  I can’t find a way to add the color for
gender.  Groups=ID enables individual lines for each subject.  If I use
groups=gender, there will be two colors, but the lines between subjects are
connected.
This is what I have so far:

xyplot(Conc~Time| orderedDose, data=d, groups=ID, layout=c(4,1),
cex=0.5,type=”b”, strip =strip.custom(par.strip.text=list(cex=0.7)))


Please let me know how this could be done.

Thank you for your attention,
Ana

	[[alternative HTML version deleted]]

