[R-sig-Geo] problem with the sp.layout command

Lyndon Estes lestes at princeton.edu
Thu Oct 14 15:11:16 CEST 2010


Hi Klaus,

I recently wrote about the same problem, which Edzer has fixed with an
sp package update:

http://r-sig-geo.2731867.n2.nabble.com/spplot-1-filling-background-polygon-without-overwriting-foreground-polygon-2-left-justifying-sp-layot-td5615087.html#a5615087

Cheers, Lyndon

On Thu, Oct 14, 2010 at 3:11 AM, Klaus Vormoor <kvormoor at uni-bonn.de> wrote:
>
> Dear list,
>
> I try to produce a map by sp.plot showing runoff forecasts along a river
> network. Additionally to the river network (lines), I want to plot a coast
> line (lines) and lakes (polygons) by using the sp.layout command. The
> drawing order should be the following: 1. rivers, 2. coast line, 3. lakes.
> To avoid the pre-defined drawing order of sp.plot, i used first = FALSE
> within the sp.layout command as it was suggested once earlier in this forum.
> But no matter where i place first = FLASE, the drawing order do not change.
>
> This is the plotting command i use:
>
> spplot(rivers, "Q_forecast", col.regions=col.key,
>  sp.layout=list(list("sp.lines","coast"),
> list("sp.polygons","lakes",col="lightblue",fill="lightblue"), first=FALSE),
>  xlim=c(-77506.04,318494), ylim=c(6429304,6900000)
>
> Does anyone see whats wrong or have a alternative suggestion to solve this
> problem?
>
> Thanks in advance!
>
> Klaus
>
>
> --
> View this message in context: http://r-sig-geo.2731867.n2.nabble.com/problem-with-the-sp-layout-command-tp5633972p5633972.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
Lyndon Estes
Research Associate
Woodrow Wilson School
Princeton University
+1-609-258-2392 (o)
+1-609-258-6082 (f)
+1-202-431-0496 (m)
lestes at princeton.edu



More information about the R-sig-Geo mailing list