Skip to content
Prev 274558 / 398506 Next

grouped lattice plot with overall regression line

If  you want to draw the global regression line in each panel, you can try

xyplot(T~A|speaker,data=spk0,layout=c(4,5),type='p',groups=fns),
panel=function(x,y,...){
panel.xyplot(x,y,...)
panel.abline(lm(y~x,data=spk0))})

Weidong Gu

2011/10/16 ??? <feb211 at naver.com>: