plot_alpha_shape {spatgeom}R Documentation

Plot alpha-shape for spatgeom objects

Description

Plot alpha-shape for spatgeom objects.

Usage

plot_alpha_shape(x, alpha, font_size = 12)

Arguments

x

an object of class spatgeom.

alpha

value of alpha determining the maximum length between points to build the alpha-shape.

font_size

a integer that increases the font size in the plot.

Value

a ggplot object with the raw alpha-shape for the original data at resolution alpha

Examples

xy <- donut_data(n = 30, a = -1, b = 1, theta = 2 * pi)

estimation <- spatgeom(y = xy[, 1], x = xy[, -1])

plot_alpha_shape(estimation, alpha = c(0.9, 1.2))

[Package spatgeom version 0.3.0 Index]