title: Creating Histogram in R not showing any bar
body: <p>Just learning R and need to create histogram using hist(). Below is my original R-script (hypothetical data):</p>
  
  <pre><code>x &lt;- c(25130250, 26054121, 28074512, 36025050, 35013655)
  y &lt;- c(1:5)
  hist(x, main = "Trafic Per Year", xlab="x-value", ylab = "y-Value")
  </code></pre>
  
  <p>This returns: <img src="https://i.stack.imgur.com/sQVnS.png" alt="enter image description here"></p>
  
  <p>What I wanted is for the chart to:</p>
  
  <ol>
  <li>show the y (i.e. 1, 2, 3,4, 5) on the x-axis </li>
  <li>show the x (i.e. 25130250,etc) on the y-axis reduced to million (i.e. 25, 26, 28, etc.) </li>
  </ol>
  
  <p>So, I modified the script as follows and now its not showing any bar.</p>
  
  <pre><code>hist(x, xlim = c(1,5), ylim = c(25,37), breaks = 5,freq = T,
       main = "Trafic Per Year",xlab="x-value",ylab = "y-Value")
  </code></pre>
  
  <p>Any help is highly appreciated.</p>