Skip to content
Back to formatted view

Raw Message

Message-ID: <13b8559c0912141141j38cba79fu91c7d35956706e57@mail.gmail.com>
Date: 2009-12-14T19:41:02Z
From: Baptiste Coulmont
Subject: shp file with 2 types of bodies (water and forest)

I would like to map the forests in green and the water bodies in blue :

summary(nature)

Object of class SpatialPolygonsDataFrame
Coordinates:
         min       max
r1  2.560776  6.403847
r2 49.493613 51.505419
Is projected: FALSE
proj4string : [+proj=longlat]
Data attributes:
                           NAME           TYPE
 Dijle                       :   43   forest:6830
 Schelde                     :   30   water :6564
 Ringselven                  :   17
 Albertkanaal                :   15
 Westelijke Rijkswaterleiding:   14
 (Other)                     :  990
 NA's                        :12285

How do I ask R to map, for example, only the forests ?

-- 
Baptiste   Coulmont
http://coulmont.com