[R] Interaction plots (six on one page)

Richard M. Heiberger rmh at temple.edu
Wed Jul 1 21:47:46 CEST 2009


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