title: Plot histogram for discrete data
body: <p>I'm struggling a lot to plot histogram using R for the following data:</p>
  <pre><code>ip_addr_player_id,event_name,level,time_to_finish,
  
  118.93.180.241, Puzzle Complete, Puzzle 1,33.28 seconds
  </code></pre>
  <p>This is a single row of data. I need to pot histogram of the number player vs the number of levels played. I was able to successfully plot scatter plot, points, lines etc. but no histogram.</p>
  <pre><code>on Xaxis: number of levels. 
  Yaxis: Number of player. 
  </code></pre>
  <p><a href="https://i.stack.imgur.com/RAK0z.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RAK0z.jpg" alt="enter image description here" /></a></p>
  <p>Each ip address is unique and multiple levels can be played by single ip address. I have attached a sample picture.</p>