[R-sig-Geo] avoid plot frame (bounding box) in spplot

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Thu Jul 21 14:35:02 CEST 2011


On Thu, Jul 21, 2011 at 12:58 PM, Carson Farmer <carson.farmer at gmail.com> wrote:
> Dear list,
>
> I'm sure there is a simple solution to my question, but I've scoured
> the archives and tried every combination of parameters I can think of,
> and still can't find a solution. All I want to do is 'remove' the
> bounding box around my spplot plots. For those of you who like
> reproducible examples, try the following:
>
> library(lattice)
> data(meuse)
> coordinates(meuse) <- ~x+y
> spplot(meuse, zcol="zinc")
>
> Notice the black box around the plot (with the legend below). How can
> I remove this bounding box?

 After trawling through the documentation and delving deep into the
labyrinth of code that is trellis, my conclusion is:

 save the plot as an SVG and delete the box using Inkscape...

 Hopefully someone will have a better option, possibly involving
trellis.par.set (but I couldn't find it there).

Barry



More information about the R-sig-Geo mailing list