Skip to contents

Add clusters of spatial entities from a selected cutting threshold of a hclust object.

Usage

mafa_clusters(sf, clustering, cutting)

Arguments

sf

sf object.

clustering

hclust object, e.g. the result of mafa_clustering().

cutting

numeric value of cutting threshold.

Value

sf object with clusters as a new column.