SpatialPolygonsDataFrame doesn't plot properly when I make the color transparent
I've been struggling with this problem for a few days. I have a shapefile that contains zip code polygons. I'm trying to plot a certain portion of it with a transparent color ( alpha=0.7 ), but some of the polygons at the edge of the plot end up with no color. If alpha=1.0 , all polygons are fine. The shapefile is stored as a Large SpatialPolygonsDataFrame . # Code that you can use (Thanks jbaums) library(rgdal); download.file('http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip', {f <- tempfile()}); unzip(f, exdir=tempdir());