Skip to content

Adding regression line to each individual plot in a window with multiple plots

1 message · Jim Lemon

#
Hi Jake,
My mistake, that should be:

par(xpd=FALSE)
abline(lm(...))
par(xpd=NA)

I suspect that the odd looking regression lines are due to points off
the plot as you have specified xlim and ylim for your plots.

Jim


On Wed, Jan 18, 2017 at 2:22 PM, Jake William Andrae
<jake.andrae at adelaide.edu.au> wrote: