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