GetExtent: GetExtent

Description Usage Arguments Value Examples

Description

Gets the x and y coordinates of the full extent of a ggplot.

Usage

1
GetExtent(map_object, return_table = F)

Arguments

map_object

A ggplot object

return_table

Boolean; Default=F. If T, returns a table where xbounds1 is the xmin, xbounds2 is the xmax, ybounds1 is the ymin, and ybounds2 is the ymax.

Value

Either a named list where the results has an $xbounds and $ybounds named list (with a min/max in each), or a table (see return_table parameter).

Examples

1
GetExtent(map_obj)

RebeccaStubbs/MapSuite documentation built on May 9, 2019, 9:37 a.m.