Message-ID: <200402101938.18239.deepayan@stat.wisc.edu>
Date: 2004-02-11T01:38:18Z
From: Deepayan Sarkar
Subject: levelplot colorkey
In-Reply-To: <5.2.1.1.2.20040210175033.02327c38@wiscmail.wisc.edu>
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