View source: R/map_bioregions.R
map_bioregions | R Documentation |
This plot function can be used to visualize bioregions based on a
bioregion.clusters
object combined with a geometry (sf
objects).
map_bioregions(clusters, geometry, write_clusters = FALSE, plot = TRUE, ...)
clusters |
An object of class |
geometry |
A spatial object that can be handled by the |
write_clusters |
A |
plot |
A |
... |
Further arguments to be passed to |
The clusters
and geometry
site IDs should correspond. They should
have the same type (i.e., character
if clusters
is a
bioregion.clusters
object) and the sites of clusters
should be
included in the sites of geometry
.
One or several maps of bioregions if plot = TRUE
and the
geometry with additional clusters' attributes if write_clusters = TRUE
.
Maxime Lenormand (maxime.lenormand@inrae.fr)
Boris Leroy (leroy.boris@gmail.com)
Pierre Denelle (pierre.denelle@gmail.com)
data(fishmat)
data(fishsf)
net <- similarity(fishmat, metric = "Simpson")
clu <- netclu_greedy(net)
map <- map_bioregions(clu, fishsf, write_clusters = TRUE, plot = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.