Plot two graphs in same plot in R

lines() or points() will add to the existing graph, but will not create a new window. So you’d need to do

plot(x,y1,type="l",col="red")
lines(x,y2,col="green")

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)