[R] Interaction plots (six on one page)

ukoenig at med.uni-marburg.de ukoenig at med.uni-marburg.de
Thu Jul 2 18:49:26 CEST 2009


Thank you Rich,
it looks very nice and seems to be the better solution.

Udo


Quoting "Richard M. Heiberger" <rmh at temple.edu>:

> I would do this as a lattice plot.  Continuing with your data:
>
> tmp <- data.frame(sapply(data, tapply, data[1:2], mean))
> tmp$time <- factor(tmp$time)
> xyplot(thanaa+thalcho+thalino+ponaa+pocho+poino ~ time,
>       group=BMIakt, data=tmp, type="l", scales=list(relation="free"),
>       auto.key=list(title="BMIakt", border=TRUE))
>
> Rich




More information about the R-help mailing list