[R] aligning axis labels in a colorkey from levelplot
Stephen Eglen
S.J.Eglen at damtp.cam.ac.uk
Tue Jun 19 19:25:48 CEST 2012
>
> Justification is hard-coded, and that's not easy to change. This is
> not only for the colorkey; e.g.,
>
> xyplot(y~1, scales = list(alternating = 3))
>
> will also give you left-aligned axes on the right.
>
> My only suggestion (other than custom labels as suggested by ilai) is
>
> levelplot(matrix(4:12,3,3), colorkey = list(space = "left"))
Thanks Deepayan; I tried the custom labels approach, but unfortunately I
don't think that works as-is; the labels are of different widths as the
font is not fixed-width.
Stephen
More information about the R-help
mailing list