Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 17th, 2012  |  syntax: None  |  size: 0.22 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Remove Space for Ticks or Decrease Line Height for Labels in R Barplots
  2. vals <- 1:4
  3. names <- 1:4
  4. barplot(vals, names=names, cex.names=.5)
  5.        
  6. out <- barplot(vals,axes = FALSE)
  7. axis(2)
  8. mtext(1:4,side = 1,at = out,cex = 0.5)