title: Error in Plotting a Time Series in R
body: <p>I have a time series which goes like this</p>
  
  <pre><code>Time,Return
  1,1.22 
  2,0.95
  3,0.25
  4,0.25
  5,-1.51
  </code></pre>
  
  <p>I wanted to plot a simple time series - time on X axis and return on Y axis</p>
  
  <pre><code>dataset &lt;- read.csv("DWDMData.csv",TRUE)
  plot(y = dataset$Return,x = dataset$Time,type="1")
  </code></pre>
  
  <p>However, I get an error saying</p>
  
  <pre><code>Error in plot.xy(xy, type, ...) : invalid plot type '1'
  </code></pre>
  
  <p>What is the reason for this error? How do I fix it?</p>