Learn R Programming

geomander (version 2.3.0)

st_circle_center: Get the centroid of the maximum inscribed circle

Description

Returns the centroid of the largest inscribed circle for each shape

Usage

st_circle_center(shp, tolerance = 0.01, epsg = 3857)

Value

An sf dataframe where geometry is the circle center of each shape in shp

Arguments

shp

An sf dataframe

tolerance

positive numeric tolerance to simplify by. Default is 0.01.

epsg

numeric EPSG code to planarize to. Default is 3857.

Examples

Run this code
data(towns)
st_circle_center(towns)

Run the code above in your browser using DataLab