create_box: Create rectangular boundary box

View source: R/create_box.R

create_boxR Documentation

Create rectangular boundary box

Description

Create rectangular boundary centred on a set location

Usage

create_box(location, y_dist = 2500, x_dist = y_dist * 2/3)

Arguments

location

A vector consisting of easting and northing, e.g. c(349950, 673605)

y_dist

Distance (in metres) north and south of the location to be displayed. Map shows y_dist metres north, and y_dist metres south.

x_dist

Distance (in metres) east and west of the location to be displayed. Map shows y_dist metres north, and y_dist metres south.

Value

An st polygon with four points.

Examples


create_box(location = c(349950, 673605), x_dist = 3000, y_dist = 1000)

n-fanton/aesmapr documentation built on May 7, 2022, 12:09 a.m.