title: How to change the Scale of Y-Axis in R
body: <p>I have this graph which I'm plotting</p>
  
  <p><a href="https://i.stack.imgur.com/kE4el.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kE4el.png" alt="enter image description here"></a></p>
  
  <p>As you can see, the values on the black line which I'm trying to plot is not on the same scale as that of the red line.
  Therefore, I'm trying to change the scale of the Y-Axis, so I can essentially "Zoom Out". How do I do this?</p>
  
  <p>What I did till now is:</p>
  
  <pre><code>plot(d,vol1, type="l",xaxt="n", xlab="Date", ylab="Volatility Estimate", main="Nasdaq Pharmaceutical Index")
  
  months= seq(min(d), max(d), "month")
  
  axis(1, months, format(months, "%Y\n%b"))
  
  lines(d, vol1, col="black")
  </code></pre>