Skip to content
Prev 4968 / 29559 Next

symbols in spplot

Thanks Roger,

your trick worked, reworking the polygon data to a raster and plotting 
the file with image()
and then plotting the rest with plot(...., add=TRUE) works great (see 
attached code).
It shows that the famous KISS principle (keep is simple, stupid ) also 
applies to plotting maps
in R .......

Peter

## code
image(rasterdata["n"], col=colors)
plot(radarcirkels, add=TRUE)
plot(circle2, add= TRUE)
plot(turbines, pch=18, add= TRUE, col = 'red')
plot(metmast, pch = 19, col = 'blue', add= TRUE)
plot(raster,pch=my.symbols(raster.midpoint$raster.mid.x1,raster.midpoint$raster.mid.x2,
      ms.arrows, angle= Data$rad, inches=0.5, adj=0.5, lwd=1.5, code = 
2, col = 'blue'), lty="blank",
    add=TRUE)
##code

Roger Bivand schreef: