Learn R Programming

prettymapr (version 0.2.5)

makebbox: Create a Bounding Box

Description

Convencience method to create a bounding box like that returned by sp::bbox(). To generate a bounding box from lists of lat/lon values use sp::bbox(cbind(lons, lats)).

Usage

makebbox(n, e, s, w)

Value

A 2x2 matrix describing a bounding box like that returned by sp::bbox()

Arguments

n

North bounding latitude

e

East bounding longitude

s

South bounding latitude

w

West bounding longitude

See Also

sp::bbox

Examples

Run this code
makebbox(45.125, -64.25, 44.875, -64.75)

Run the code above in your browser using DataLab