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,
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