[R] barplot: space between axis and bars

Jim Lemon jim at bitwrit.com.au
Wed Sep 15 14:31:29 CEST 2010


On 09/15/2010 09:54 PM, Daniel Stepputtis wrote:
> Hi all,
> I have a problem with a rather simple plot (which I have used several
> times) - barplot.
>
> I want to create a barplot, where no space is between the axis and the
> bars.
>
> Example:
> barplot(rnorm(10), space=0)
>
> creates a vertical axis at the left and bars. I want to skip the space
> between both.
>
Hi Daniel,
Try the barp function in the plotrix package.
Jim



More information about the R-help mailing list