title: How do I get x-axis labels to show in R Barplot?
body: <p>Probably pretty simple but I am a newb to R (and to stack)...</p>
  
  <p>Can't seem to get the car names to show on the x-axis of my barplot.</p>
  
  <p>I tried pasting in the example given in the "How to display all x labels in R barplot?" Question but that didn't work </p>
  
  <p>My code is below. Does that code work for anybody else?</p>
  
  <pre><code>#plot of efficiency of 4 cylinder cars
  #get 4cylinder cars seperate
  fourcyl &lt;- subset(mtcars, cyl == "4")
  #barplot in descending order... need to add in car names.
  barplot(fourcyl$mpg[order(fourcyl$mpg, decreasing = TRUE)], 
          horiz=FALSE,
          ylab = "Miles per Gallon",
          main = "Efficiency for 4 cylinder vehicles",
          ylim = c(0,35))
  </code></pre>