One or several maps of bioregions if plot = TRUE and the
geometry with additional clusters' attributes if write_clusters = TRUE.
Arguments
clusters
an object of class bioregion.clusters or a data.frame. If
a data.frame is used, the first column should represent the sites' ID, and
the next column(s) the clusters.
geometry
a spatial object that can be handled by the sf package.
The first attribute should correspond to the sites' ID (see Details).
write_clusters
a boolean indicating if the clusters
should be added in geometry.
The clusters and geometry site IDs should correspond. They should
have the same type (i.e. character is cluster is a
bioregion.clusters object) and the site of clusters should be
included in the sites of geometry.