get_plot_extents: Function to calculate the ideal extents of a shapefile

Description Usage Arguments Value

View source: R/LWSlib.R

Description

Function to calculate the ideal extents of a shapefile

Usage

1
get_plot_extents(shp, expand.ratio = 0.1)

Arguments

shp

a shapefile of class sp

expand.ratio

This is the how much the x and y limits will expand by. It defaults to 0.1 (or 10 percent)

Value

list of two vectors - x and y containing a min and max value


jimmybom/LWSlib documentation built on Aug. 21, 2019, 3:55 a.m.