title: Getting barplot instead of scatterplot in R
body: <p>I'm trying to <code>plot</code> from a dataframe (<code>df</code>) that has the following first 8 rows:</p>
  
  <pre><code>df = 
  
  V1  V2  V3
  1   34.62365962451697   78.0246928153624    0
  2   30.28671076822607   43.89499752400101   0
  3   35.84740876993872   72.90219802708364   0
  4   60.18259938620976   86.30855209546826   1
  5   79.0327360507101    75.3443764369103    1
  6   45.08327747668339   56.3163717815305    0
  7   61.10666453684766   96.51142588489624   1
  8   75.02474556738889   46.55401354116538   1
  </code></pre>
  
  <p>I'm using <code>plot(df$V1, df$V2)</code> but what I get is this image:
  <img src="https://i.stack.imgur.com/for9a.png" alt="R-plot"></p>
  
  <p>When I use <code>plot(df)</code> instead it shows me the right results shown below in a red square.</p>
  
  <p><img src="https://i.stack.imgur.com/oz7FE.png" alt="R-scatterplot"></p>
  
  <p>What am I missing here?</p>