Skip to content
Prev 78816 / 398502 Next

problems with levelplot and contourplot

Tom Lenaerts wrote:
No need to explicitly load "grid". This is done when attaching 
"lattice". Also, you do not need any ";" at the end of any lines.
Don't you mean

levelplot(vals ~ x * y, grid, region=TRUE, cuts=20)

Your data.frame "grid" has columns "x" and "y", not "conc" and "a".
To print y in log-scale, add the following:

levelplot(..., scale = list(y = list(log = TRUE)))

HTH,

--sundar