Skip to content
Prev 17894 / 29559 Next

drawing order in spplot and Line width in sp maps

On Sat, Mar 30, 2013 at 8:35 AM, Edzer Pebesma <edzer.pebesma at uni-muenster.de> wrote:
Thank you for making these wonderful packages!

This did the trick! I would never ever guess what was missing...

However this breaks colors for _sp.polygons_ if several were used :(
E.g. in my example I had

,----[ Only first color is effective with set_Polypath(FALSE) ]
| l.wshd <- list("sp.polygons", bdry, col=c("magenta", "blue"), lwd=1.5)
`----

So I had to have a logical block in panel function

,----[ snippet from a function supplied as panel ]
|          set_Polypath(FALSE)
|          panel.polygonsplot(...)
|          set_Polypath(TRUE)
|          sp.panel.layout(list(l.wshd, l.streams, l.struc))
`----

I guess it is hard to hit 2 birds with 1 stone...
I'll check it out once it propagates to a binary package @CRAN.

Also I feel like that documentation is misleading a bit regarding _cuts_
saying that it is for SpatialPointsDataFrame only. It appears that it does
change # of breaks for polygon just fine.


P.S. I thought I found an answer to my question about padding when I came
across [1]. However it looks like axis.padding is not for z values...
Footnotes: 
[1]  https://r-forge.r-project.org/scm/viewvc.php/pkg/R/levelplot.R?view=markup&root=lattice