Re: [R-sig-Geo] problem saving spplot in a loop

2009-12-07 Thread Paul Hiemstra
Hi, This is a byproduct of the fact that under the hood spplot uses lattice commands (levelplot and xyplot) to make the plots. This behavior is a FAQ for lattice commands, and thus spplot. Even shorter than Henk's suggestion is to use: png(filename=...) print(spplot(...)) dev.off() cheers,

Re: [R-sig-Geo] problem saving spplot in a loop

2009-12-07 Thread Henk Sierdsema
Hi Alex, You have to assign the plot to a temporary variable (like tmp <- spplot(...)) and then use print(tmp1) to save it in the png-file so somethink like: tmp <- spplot(...) png(filename=...) print(tmp) dev.off() Succes! Henk - Henk Sierdsema SOVON Vogelonderz