[R] lattice/xyplot: horizontal y-axis labels with scales(relation="free")

Karl Ove Hufthammer Karl.Hufthammer at math.uib.no
Tue Oct 9 16:00:35 CEST 2007


Andreas Krause:

> # still vertical despite las=1
> xyplot(Sepal.Length ~ Sepal.Width | Species, data=iris,
> scales=list(relation="free"), las=1) xyplot(Sepal.Length ~ Sepal.Width |
> Species, data=iris, scales=list(relation="free", las=1))

Try

xyplot(Sepal.Length ~ Sepal.Width | Species, data=iris, scales=list(relation="free", rot=0))

lattice uses 'rot' instead of 'las' for rotating the labels.

-- 
Karl Ove Hufthammer



More information about the R-help mailing list