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

Klaus Vormoor kvormoor at uni-bonn.de
Thu Oct 14 09:11:31 CEST 2010


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.



More information about the R-sig-Geo mailing list