Re: [R] aligning axis labels in a colorkey from levelplot

2012-06-26 Thread Stephen Eglen
Deepayan Sarkar deepayan.sar...@gmail.com writes: You can specify a fixed-width fontfamily if that helps: levelplot(matrix(seq(4,120,l=9),3,3), colorkey = list(at = seq(0, 120, 20), labels = list(labels = c(' 0',' 20',' 40',' 60',' 80','100','120'),

Re: [R] aligning axis labels in a colorkey from levelplot

2012-06-22 Thread Deepayan Sarkar
On Tue, Jun 19, 2012 at 10:55 PM, Stephen Eglen s.j.eg...@damtp.cam.ac.uk wrote: 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

Re: [R] aligning axis labels in a colorkey from levelplot

2012-06-19 Thread Stephen Eglen
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

Re: [R] aligning axis labels in a colorkey from levelplot

2012-06-18 Thread Deepayan Sarkar
On Sat, Jun 16, 2012 at 1:41 PM, Stephen Eglen s.j.eg...@damtp.cam.ac.uk wrote: R does a great job with the fine details regarding plots.  e.g in the following: library(lattice) y - -4:4/10 xyplot(y~1, las=1) the y axis is labelled with numbers -0.4, -0.2, 0.0, 0.2, 0.4 with the numbers

[R] aligning axis labels in a colorkey from levelplot

2012-06-16 Thread Stephen Eglen
R does a great job with the fine details regarding plots. e.g in the following: library(lattice) y - -4:4/10 xyplot(y~1, las=1) the y axis is labelled with numbers -0.4, -0.2, 0.0, 0.2, 0.4 with the numbers aligned on the decimal point. How do I get the same behaviour in the colorkey of a

Re: [R] aligning axis labels in a colorkey from levelplot

2012-06-16 Thread ilai
On Sat, Jun 16, 2012 at 2:11 AM, Stephen Eglen s.j.eg...@damtp.cam.ac.ukwrote: R does a great job with the fine details regarding plots. e.g in the following: library(lattice) y - -4:4/10 xyplot(y~1, las=1) No. las is a parameter in base graphics ?par. It was simply ignored here: