r - How to make colours in level plot in lattice change smoothly? -


i've made level graph in lattice shows changes in temperature in lake water column water depth , month. colours, don't change smoothly. instead graph divided different colour squares.

here's code used:

levelplot(temperature ~ date*depth, data = lakedata, xlab = "month", ylab = "depth (m)", ylim=c(11,0), col.regions=terrain.colors(100)) 

i've tried contour plot in lattice, despite graduate change of contours, colours stays in squares:

contourplot(temperature ~ date*depth, data = lakedata, xlab = "month", ylab = "depth (m)", ylim=c(11,0), region=true, aspect = "fill", col.regions = terrain.colors(100)) 

i guess problem might caused fact explanatory variables categorical. there can done smooth change in colours?


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -