I have a SPDF of this type:
class : SpatialPolygonsDataFrame
features : 11723
extent : -2294145, -1102155, 2191605, 3506145 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs +ellps=GRS80 +towgs84=0,0,0
variables : 10
names : OBJECTID, POI_ID, PROD_UNIT, Y_Centroid, X_Centroid, AREA, seg_id, Avg, Lon_Centro, Lat_Centro
When I plot it using plot(spdf)
, I get the polygons.
But I want to color these polygons using one of the variables (say, AREA).
I know how to do it using spplot
, but I want to use baseplot as it is much faster. How can I do this?
This is how I would do it using spplot
:
spplot(SPDF, "AREA", main = "area (m2)")