axis between plot and surve

Hi

i dont understand how to give plot and curve exactly the same axis

plot(x=tout$x,y=tout$y,
     xlab="x",ylab="y",
     main="",
     ylim = c(0, 10),
     xlim = c(0, 5000)))
abline(bchapxy,achapxy,col="orange")
par(new=TRUE)
curve((log(x)-bchapzt)/achapzt, 0, 5000, n = 200,col="green")

do not work

omit par(new=TRUE)
and use add=TRUE as a further param of curve()

Fantastic and simple, thanks you very much

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.