Skip to content
Prev 605 / 29559 Next

convertion to polygon for coloring, shading (was: clipping in maptools)

On Fri, 30 Sep 2005, Sebastian Luque wrote:

            
Try:
and see what it says. If it is not type (5)  - or since version 0.4-15
(15) - it is not a polygon file. If the lines are known to form rings,
there are ways of doing this using sp classes, but you have to know
definitely that the lines are rings, not spaghetti. Ask again if you have 
a type (3) or (13), and know that all the lines really are rings.

Which version of maptools are you using - enter maptools() to see?
The scale and north arrow are available in sp - see ?"spplot-methods" for 
how to use them in lattice graphics. In base graphics, arrows() and a 
combination of lines() and/or rect() should do it, but they are not 
pre-programmed (yet).