[R] remove axes on barp from plotrix

Jim Lemon jim at bitwrit.com.au
Sun Jan 19 09:28:59 CET 2014

On 01/19/2014 07:48 AM, Chrisee wrote:
> Hello guys,
> I'm using the barp function from the plotrix package, which works really
> really great.
> Unfortunately, I need a finer spacing of the labels on the y - axis.
> Is there any way to control this?
> Looking at the documentation of barp, it seems to be done rather
> automatically.
> An option would be to not plot axes at all from "barp", and add them later
> by using axes(), which I was not able to get to work..
> I tried axes=FALSE, and yaxt="n", and par settings: yaxp = c(a,b,n), all of
> which did not work.
Hi Chrisee,
Look at the arguments "height.at" and "height.lab". These allow the user 
to place tick marks and labels anywhere on the Y axis (height.at) and 
define the labels (height.lab) much like the "axis" function. Check the 
first example on the help page to see how it is done.


More information about the R-help mailing list