getmask: Domain map and boundaries.

View source: R/graphics.R

getmaskR Documentation

Domain map and boundaries.

Description

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

limage,vecplot

Examples

  ## Not run: 
  iview(myfield, fill=TRUE)
  plot(getmask(), col="white", border=1, add=TRUE)
  
## End(Not run)

adeckmyn/meteogrid documentation built on Jan. 13, 2025, 11:02 p.m.