[R] xlims of barplot

Marc Schwartz MSchwartz at medanalytics.com
Thu Nov 13 15:45:22 CET 2003

On Thu, 2003-11-13 at 07:49, Marc Schwartz wrote:


> # Now use this format for EACH barplot
> barplot(...., horiz = TRUE, xlim = c(0, max.x))
> That will result in the x axis being the same in each plot.  You might
> want to use something like 'xlim = c(0, max.x * 1.25)', which will give
> you some additional space above the bars (ie. for a legend, etc.).


Quick clarification:

The last line in the above paragraph should of course read:

"...additional space *to the right* of the bars..."

when creating a horizontal barplot.


More information about the R-help mailing list