title: Two plots with same X and Y axis
body: <p>The plot shown is produced by the following R code.</p>
  
  <pre><code>png("test.png")
  plot(data[,4],data[,3],type='l',col="green")
  par(new=TRUE)
  plot(data[,4],data[,2],type='l',col="red")
  dev.off()
  </code></pre>
  
  <p>The range of Y-axis differs for both the plots and it is overwritten as shown in the image. Could someone help to set the same Y-axis range for both the plots.</p>
  
  <p><img src="https://i.stack.imgur.com/j8Eyx.png" alt="enter image description here"></p>