title: "Error in plot.xy(xy.coords(x, y), type = type, ...) : plot.new has not been called yet"
body: <p>Some unsual error appears with line function in R, when I want line</p>
  <pre><code>lines(soy$Year,ci_soy[,1],col='black',lwd=3)
  
  lines(soy$Year,ci_soy[,1],type=&quot;l&quot;, col=&quot;green&quot;, lwd=3,xlab=&quot;Year&quot;, ylab=&quot;bu_acre&quot;)
  
  plot(soy$Year,ci_soy[,1],type=&quot;l&quot;, col=&quot;green&quot;, lwd=3,xlab=&quot;Year&quot;, ylab=&quot;bu_acre&quot;)
  </code></pre>
  <p><img src="https://i.stack.imgur.com/jXVyZ.png" alt="enter image description here" /></p>