[R] Lattice equivalent of axis(..., hadj=0)?

From: SIES 73 <enrique.bengoechea_at_credit-suisse.com>
Date: Wed, 05 Nov 2008 11:27:20 +0100

Hi, I'm trying to show categories labels on the y-axis of a lattice barchart left-aligned instead of the default right-aligned.  

That is, in the following example code:  

    x <- c(14.16, 9.98, 14.59, 15.24)
    names(x) <- c("Banks & Finance", "Technology", "Non-Cyclicals", "Communications")     barchart(x)

I want the labels "Banks & Finance", etc, left-aligned close to the plot left edge instead of right-aligned close to the y axis.  

I can do it in traditional plots leaving extra space with par(mar), then using axis(..., hadj=0). But I find no easy alternative in lattice. panel.axis() doesn't seem to have any option for horizontal alignment of labels...  

Is there some easy way to get it, or I must program it?  



        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 05 Nov 2008 - 10:31:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Nov 2008 - 11:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive