title: R legend not showing in Plot
body: <p>I have the following R code for a simple plot: </p>
  
  <pre><code>ExperimentDataNames = c('Count', 'HumanData', 'ActualPrices')
  ExperimentData &lt;- read_csv("/Users/justin_chudley/desktop/ExperimentData.csv", col_names = ExperimentDataNames)
  
  x &lt;- Count &lt;- ExperimentData$Count
  y &lt;- HumanData &lt;- ExperimentData$HumanData
  y1 &lt;- ActualPrices &lt;- ExperimentData$ActualPrices
  
  plot(x,y, type = "l", xlab="Trial Number",ylab="$USD",main="Dow Jones Price vs Human Experiment")
  lines(x,y1, type = "l", col=2)
  legend=c('Human Data', 'Actual Prices') 
  </code></pre>
  
  <p>The legend does not show at all in this plot for some reason: <a href="https://i.stack.imgur.com/XOV2m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XOV2m.png" alt="enter image description here"></a></p>
  
  <p>Why is my legend not showing? </p>