powered by
spatgeom
Plot alpha-shape for spatgeom objects.
plot_alpha_shape(x, alpha, font_size = 12)
a ggplot object with the raw alpha-shape for the original data at resolution alpha
ggplot
alpha
an object of class spatgeom.
value of alpha determining the maximum length between points to build the alpha-shape.
a integer that increases the font size in the plot.
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))
Run the code above in your browser using DataLab