Skip to content
Prev 6371 / 29559 Next

Problem with Sweave and spplot

Hi,
Have you embedded the spplot() function inside a print() function.
Lattice graphics need to be printed() inside Sweave. Something like:

print(spplot(mymap, "mydata"))

Otherwise I believe that you will get some PDF files but they will be
empty or borken.

Best wishes,

Virgilio