Adds a polygon to an existing map, by analogy to polygon(). Used by mapImage().

mapPolygon(
  longitude,
  latitude,
  density = NULL,
  angle = 45,
  border = NULL,
  col = NA,
  lty = par("lty"),
  ...,
  fillOddEven = FALSE
)

Arguments

longitude

numeric vector of longitudes of points to be plotted, or an object from which longitude and latitude can be inferred (e.g. a coastline file, or the return value from mapLocator()), in which case the following two arguments are ignored.

latitude

numeric vector of latitudes of points to be plotted.

density

as for polygon().

angle

as for polygon().

border

as for polygon().

col

as for polygon().

lty

as for polygon().

...

as for polygon().

fillOddEven

as for polygon().

See also