Re: [R] trellis: style of axis labels

From: Sundar Dorai-Raj <sundar.dorai-raj_at_pdf.com>
Date: Tue 13 Dec 2005 - 01:29:22 EST

Arne.Muller@sanofi-aventis.com wrote:
> Hello,
>
> is it possible to get xyplot of package lattice to acknowledge par(las=2)? In my trellis plot the x-axis lables are overlapping (they're factors with rather long level names), and I'd like to have them vertical. The trellis plot doesn't seem to read the 'par' settings, and trellist.par.set neither :-(
>
> thanks for your help,
> +kind regards,
>
> Arne
>
>

Yes, use the scales argument:

xyplot(..., scales = list(x = list(rot = 90)))

Most 'par' options will not work with lattice.

--sundar



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Dec 13 01:56:38 2005

This archive was generated by hypermail 2.1.8 : Tue 13 Dec 2005 - 04:30:43 EST