title: Changing y axis max in time series R
body: <p>The ts() object in R doesn't seem to let you use ylim so I'm unable to set a customized y axis range for my time series. If i do use ylim i get a unused variable error. This is what i have for plotting my time series: </p>
  
  <pre><code>dataTimeSeries &lt;- ts(newru$Value, start = c(input$years[1]), end = input$years[2])
  plot.ts(dataTimeSeries)
  abline(h=amount$toxicityLevels, col="blue")   #add horizontal line
  </code></pre>
  
  <p>I'm trying to add a horizontal line to the time series graph via the abline function, but sometimes the y axis isn't large enough for the line to actually show which is why I'm wondering if theres another way to extend the y axis. Thanks! </p>