Skip to contents

These routines return the map (polygons) for drawing over a plot. Or the inversei.e. the sea becomes the inside of the polygons, e.g. to erase values over the sea.

Usage

getmap(domain=.Last.domain(), interior=TRUE, 
                   fill=FALSE, map.database="world")
getbox(domain=.Last.domain())
getmask(domain=.Last.domain(), map.database="world")

Arguments

domain

A geodomain

interior

Draw interior (political) country borders.

fill

Return the map as polygons, not simple lines.

map.database

The map database to be used.

Details

getmask depends on the sf package.

See also

Examples

  if (FALSE) {
  iview(myfield, fill=TRUE)
  plot(getmask(), col="white", border=1, add=TRUE)
  }