Skip to content
Prev 274522 / 398506 Next

Superposing mean line to xyplot

2011/10/10 Niccol? Bassani <biostatistica at gmail.com>:
Is this close to what you are looking for?

xyplot(exprs ~ array | miRNA, data = data, col="black",lty=2:5,
       type="b", groups=spot, xlab="Array",
       ylab = "Intensity",
       scales = list(y = list(relation = "free")),
       panel = function(x, y, groups, subscripts, ...){
           panel.xyplot(x, y, groups=groups, subscripts=subscripts, ...)
           panel.average(x, y, col = "grey", lwd = 2, horizontal = FALSE)
       })

-Deepayan