[R] Force labelling of x-axis

Jim Lemon bitwrit at ozemail.com.au
Mon Mar 21 06:23:00 CET 2005


Bill Kranec wrote:
> Hi,
> 
> I'm trying to do a box-whisker plot of two columns of a data frame, a
> list of category names in one column vs. some numerical values in the
> other.  The plot itself works fine, but only a few points of the x-axis
> ( the category names ) are labelled.  I think that this is because the
> category names are too long.
> 
> Is there any way to force R to label each x-axis value, preferably at a
> 45-degree slant so that each one can be seen?  I feel like this should be
> pretty easy to do, but I can't find anything obvious from the R-manual.
> 
> Thanks for any help,
> 
> Bill
> 
You might find the "staxlab" function in the "plotrix" package helpful.

Jim




More information about the R-help mailing list