[R] trellis: style of axis labels

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Mon Dec 12 15:29:22 CET 2005


Arne.Muller at 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




More information about the R-help mailing list