Skip to content
Prev 15206 / 29559 Next

Modify spplot frame borders, padding and font

library(lattice)
trellis.par.set(axis.line=list(col=NA))
library(sp)
loadMeuse()
spplot(meuse.grid[1])

takes away the border, but not only around the map area, also around the
legend colour block.
On 05/30/2012 10:18 PM, Dillingham, Iain wrote:
AFAICS, par.settings does nothing in the code fragment below.

The spplot documentation says:

Description:

     Lattice (trellis) plot methods for spatial data with attributes

(and much later:)

     for useful values see the appropriate documentation of xyplot and
     levelplot.

so reading into how lattice plots work, e.g. modifying parameters with
trellis.par.set, or reading the documentation of xyplot and levelplot in
package lattice might help. It assumes that the words "lattice" and
"trellis" ring a bell.