I'm not sure about your somthness problem (this is not clear in the plot you are showing), but you can improve it by doing cubic (or Hermite) spline interpolation of your points. Here are a few options using spline and splinefun .

layout(matrix(c(1,2,3),nrow=3,byrow=TRUE)) plot(NA,xlim=c(0,1),ylim=c(0,0.2),xlab="delta",ylab="K", xaxs="i",yaxs="i", main='orginal plot with 45000 points') # Empty plot a1 <- curve((x+x^7-x^2-x^4)/(1+xx^3-x^4), from=0, n=45000, add = TRUE) x <- seq(0,1,length.out=1000) y <- (x+x^7-x^2-x^4)/(1+xx^3-x^4) f <- splinefun(x, y) plot(NA,xlim=c(0,1),ylim=c(0,0.2),xlab="delta",ylab="K", xaxs="i",yaxs="i", main='splinefun plot with 1000 points') curve(f(x),0, 1, col = "green", lwd = 1.5,add=TRUE) plot(NA,xlim=c(0,1),ylim=c(0,0.2),xlab="delta",ylab="K", xaxs="i",yaxs="i", main='spline plot with 1000 points') lines(spline(x,y), col = 2)