powered by
plot_add(...)
plot(x=1:100, y=sin(1:100), type="l", bty="n", xlim=c(1,200), xlab="x", ylab="y") plot_add(x=1:200, y=cos(1:200), type="l", bty="n", col="red")
Run the code above in your browser using DataLab