Skip to content
Prev 1403 / 20628 Next

Unexpected text-output using BY to plot random effects.

abline() does not return anything, it justs adds lines to the existing 
plot; this is why you obtain NULL from the by() statement. One option to 
avoid printing is to use invisible(), e.g.,

invisible(by(sleep, sleep$resp, function(x) abline(coef=x)))


I hope it helps.

Best,
Dimitris
Rense Nieuwenhuis wrote: