[R] Labeling the theme of shp file in R

JIRUŠE Marek jiruse at gfk.cz
Wed Oct 5 13:12:24 CEST 2005


Dear R-users,

I am using the package maptools to draw a shp file in R with a function Map2poly() without problem. I would appreciate to know how can I add the labels of the objects in the map.
Thank you for any advice.

library(maptools)
try <- read.shape(system.file("data shp/okresy.shp", package="maptools"))
mappolys <- Map2poly(try,quiet=FALSE)
plot(mappolys)

Marek Jiruse
Data Production Specialist
GfK Praha, s.r.o.
Geologická 2
CZ - 152 00 Praha 5
tel.: +420 296 555  694
fax: +420 251 815 800
e-mail: jiruse at gfk.cz
http://www.gfk.cz




More information about the R-help mailing list