title: Visualizing of frequency of integer data in R
body: <p>When I try to visualize my integer data with <em>histogram(mydata,breaks=c(0,n))</em>, R usually doesnt care about how many breaks (usually 1 bar for each sample) do I use and it plots n-1 bars (first two bars are summed into one).</p>
  
  <p>In most cases I use <em>barplot(table(mydata))</em></p>
  
  <p>And there is one more way to do it
  <a href="https://stackoverflow.com/questions/14392647/how-to-separate-the-two-leftmost-bins-of-a-histogram-in-r">How to separate the two leftmost bins of a histogram in R</a>
  but I think its not "clear" way.</p>
  
  <p>So how do you visualize frequency of your integer data? 
  Which one is right?</p>
  
  <p>Thank you a lot</p>