Quantcast
Channel: Plot two graphs in a same plot - Stack Overflow
Viewing all articles
Browse latest Browse all 18

Answer by bnaul for Plot two graphs in a same plot

$
0
0

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")

Viewing all articles
Browse latest Browse all 18




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>