Hi, I used GAM function with this code: library(mgcv) modgam=gam(Z~X+Y,data=table) pred=predict(modgam,type="response") vis.gam(modgam,view=c("X","Y"),plot.type="contour",zlim=c(1,16)) My problem is on my figure, the predicted values begin by 0 to 16 with an interval equal 2: 1- I want that the predicted values (Z) begin by 1 until 16 with an interval equal 1. I tried with zlim=c(1,16) but the result is not good. How do I do it? 2- On the figure, the red color corresponds with the weak values and light red corresponds with the big values. How to invert the color to obtain red color corresponding with the big values. Thanks for your help. Komine -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-GAM-tp3561371p3561371.html Sent from the R help mailing list archive at Nabble.com.