[R] scale caption on levelplot

2010-12-04 Thread Andrew Collier
hi, i am trying to figure out how to put a caption on the colour scale of a levelplot. there does not seem to be an option for this in levelplot(). i tried using mtext() but as soon as you put the text far out enough on the right of the plot, it goes beyond the plot boundary. so i tried to extend

Re: [R] scale caption on levelplot

2010-12-04 Thread David Winsemius
On Dec 4, 2010, at 8:25 AM, Andrew Collier wrote: hi, i am trying to figure out how to put a caption on the colour scale of a levelplot. there does not seem to be an option for this in levelplot(). Agreed. I could not find one in the levelplot help page or in the chapter of Lattice on

Re: [R] scale caption on levelplot

2010-12-04 Thread Peter Ehlers
Andrew, see below On 2010-12-04 08:25, David Winsemius wrote: On Dec 4, 2010, at 8:25 AM, Andrew Collier wrote: hi, i am trying to figure out how to put a caption on the colour scale of a levelplot. there does not seem to be an option for this in levelplot(). Agreed. I could not find one

Re: [R] scale caption on levelplot

2010-12-04 Thread Andrew Collier
hi peter and david, thanks for the excellent suggestions. here is something like what i am finally using (those fancy fonts were really tempting, but i chose something a little more mundane!): library(lattice) x - sort(rnorm(100,50,10)) y - sort(runif(100,0,20)) d - expand.grid(x=x, y=y) d$z -

Re: [R] scale caption on levelplot

2010-12-04 Thread Peter Ehlers
On 2010-12-04 21:29, Andrew Collier wrote: hi peter and david, thanks for the excellent suggestions. here is something like what i am finally using (those fancy fonts were really tempting, but i chose something a little more mundane!): library(lattice) x- sort(rnorm(100,50,10)) y-