Re: [R] Level Plot and Scale of Colorkey

2008-06-13 Thread Toby Marthews
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

[R] Level Plot and Scale of Colorkey

2008-06-13 Thread emma hartnett
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)