gg_bbox: Function to specify a bounding box for geom_sf

Description Usage Arguments Details Value

View source: R/gg_bbox.R

Description

gg_bbox takes an sf object and uses its bounding box for a ggplot.

Usage

1
gg_bbox(geom, x1 = 0, x2 = 1, y1 = 0, y2 = 1, ...)

Arguments

geom

An sf table whose bounding box will be used for ggplot.

x1

The left boundary of the bounding box.

x2

The right boundary of the bounding box.

y1

The top boundary of the bounding box.

y2

The bottom boundary of the bounding box.

...

Additional arguments to be passed to coord_sf.

Details

A function for manually specifying the bounding box of a ggplot. It is a convenience wrapper around ggplot2::coord_sf.

Value

A coord_sf call which can be inserted into a ggplot stack.


UPGo-McGill/upgo documentation built on Nov. 20, 2021, 2:26 a.m.