Skip to contents

Function for adding the outline of a geographical domain to the current plot.

Usage

domainbox(geo, add.dx=TRUE, npoints=200, ...)

Arguments

geo

A geodomain object. Or any object (like geofield) thta has a domain attribute.

add.dx

Usually, the co-ordinates are the centers of the grid boxes, not the corners. So we add dx/2 to get the full plot window. Set to FALSE in other cases.

npoints

The number of points used to define the 4 edges. If the lines are very curved and the plot is at very high resolution, you may want to increase this number to get smoother lines.

...

Graphical parameters.

Value

The outline of the domain is added to a pre-existing plot. If the projection is the same, this may be a square, but otherwise it is re-projected.

See also