On 1/6/09, Assaf oron <assaf.o...@gmail.com> wrote: > Hi all, > > I want to create a rather standard overlaid qqnorm plot on a single > variable, with different subgroups of the same dataset plotted using > different colors/symbols/etc. (I don't want side-by-side, rather > different-colored curves on the same graph) > > I managed to do it rather tediously using "lapply" and "split", and wondered > whether there is any single-command shortcut. Is there anything on the > "lattice" package perhaps?
Yes, use qqmath(~x, groups=...), e.g., qqmath(~ height, data = singer, groups = voice.part, auto.key = TRUE) -Deepayan ______________________________________________ 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.