[R] xypplot (lattice): colours of lines

Umberto Maggiore umberto_maggiore at hotmail.com
Wed Feb 4 11:03:51 CET 2004


Using data from a multicenter study with a parallel-group design comparing
two treatments, I plotted each subject's time change of X after stratifying
for center:

xyplot(X ~ time | center, type="l", panel=panel.superpose, groups=subject)

Now I want these lines to take different colours according to the variable
"treatment". Any help?
Umberto

_________________________________________________________________
Filtri antispamming e antivirus per la tua casella di posta




More information about the R-help mailing list