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 cant 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]]
______________________________________________ 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.