Here are two sets of code that produced the same error message:
plot.new()
frame()
data(father.son)
lmfs <- lm(father.son$fheight ~ father.son$sheight, data=father.son)
plot(father.son$fheight,father.son$sheight)
abline(65,65)
plot(pressure)
abline(0,1)
The error message is ‘Error int_abline(a = a, b = b, h = h, v = v, untf = untf, …) : plot.new has not been called yet’
Thank you for the response