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

2011-07-21 Thread Edzer Pebesma
(Cc:'ing to Deepayan) -- the problem refered to earlier seems to be that in library(sp) loadMeuse() spplot(meuse.grid["dist"], par.settings = list(axis.line = list(col = 'transparent'))) not only the frame around the plot, but also the line around the legend disappears. AFAICS lattice:::draw

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

2011-07-21 Thread Dennis Murphy
Hi: Is this what you had in mind? # library(lattice) spplot(meuse, zcol = 'zinc', par.settings = list(axis.line = list(col = 'transparent'))) The par.settings = part comes from the graphical parameters in lattice. See trellis.par.get('axis.line') to get a list of the (default) setting

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

2011-07-21 Thread Barry Rowlingson
On Thu, Jul 21, 2011 at 1:39 PM, caspar hallmann wrote: > One way out (since in R there are usually more) is > > trellis.par.set(axis.line=list(col=NA)) > then > spplot(... etc > > but then also the box around the legend dissapears. SOme one one this list > has sent me code that corrects this bit

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

2011-07-21 Thread Carson Farmer
Caspar, > One way out (since in R there are usually more) is > trellis.par.set(axis.line=list(col=NA)) > then > spplot(... etc Cool, this works nicely... > but then also the box around the legend dissapears. SOme one one this list > has sent me code that corrects this bit but I cant seem to be able

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

2011-07-21 Thread caspar hallmann
One way out (since in R there are usually more) is trellis.par.set(axis.line=list(col=NA)) then spplot(... etc but then also the box around the legend dissapears. SOme one one this list has sent me code that corrects this bit but I cant seem to be able to find it at the moment. Hope it helps Ca

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

2011-07-21 Thread Barry Rowlingson
On Thu, Jul 21, 2011 at 12:58 PM, Carson Farmer 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 a

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

2011-07-21 Thread Carson Farmer
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 examp