[R-sig-Geo] plot a variable in a SpatialPolygons object

Massimo Ventrucci massimo.ventrucci at unibo.it
Mon Jul 28 16:38:44 CEST 2008


Dear all,
sorry my question seems to me quite basic and perhaps is already posted but at a first sight I did not find it.
Basically I have a map of contiguous areas in the form of a SpatialPolygons object. In all areas I need to display the value of a binary value (e.g. to color the areas corresponding to value 1).
I have to say in a guide to the package "spdep" I found the code to do a map (it was a map of probabilities buillt by using plot coomand after having used probmap command), but in that case the plot is done starting from an object of class polylist if I say well. Instead I need to do a plot starting from a SpatialPolygons object because I do not have the map in other formats. 
 
Moreover, in future I will also need to plot values graduated by colors.
 
Please, can you help me?
thanks in advance
massimo
 
Massimo Ventrucci
Ph.D Student in Statistics
Dipartimento di Scienze Statistiche
Università degli studi di Bologna
Via Belle Arti 41
40126 Bologna-Italy
_____________________________________

Phone +39(051)264182 (office)
Fax     +39(051)232153
E-mail massimo.ventrucci at unibo.it




More information about the R-sig-Geo mailing list