[R] levelplot colorkey

Deepayan Sarkar deepayan at stat.wisc.edu
Wed Feb 11 02:38:18 CET 2004


On Tuesday 10 February 2004 18:07, Jeff Jorgensen wrote:
> Dear R'ers,
>
> I've scanned available documentation and the web, but I can't seem to
> figure out where I've gone wrong in adding numbers to scale the colorkey in
> levelplot (Lattice package).  For example,
>
> levelplot(z, contour=T, labels=T, cuts=10, region=T,...
>             colorkey=list(T, space="bottom",
                            ^
                      what's this for ?

>                            at=seq(0,2000,length=20),
> labels=list(as.character(seq(0,2000,length=20)))) )

I think you wanted to do 

colorkey = list(space = "bottom",
                labels = list(at = seq(0,2000,length=20),
                              lab = seq(0,2000,length=20)))

and then you would have changed the 20 to 21 :-)

Deepayan




More information about the R-help mailing list