Try
colscaledivs=100#colscaledivs=15 here is the R default
levelplot(z ~ x * y, g,xlab="x co-ordinate",ylab="y
co-ordinate",colorkey=TRUE,at=seq(from=-0.01,to=0.25,length=colscaledivs),col.regions=(col=gray((0:colscaledivs)/colscaledivs)))
Toby Marthews
Le Ven 13 juin 2008 18:50
I am drawing level plots but I would like to specify the range of the colorkey,
I am not having any success figuring this out so any help would be greatly
appreciated!
Here is an example of what I am trying to do:
disp<-1
x <- seq(1, 10,by=1)
y <- seq(1,10,by=1)
g <- expand.grid(x = x, y = y)
2 matches
Mail list logo