View source: R/plot_clusters.R
plot_clusters | R Documentation |
plot_clusters
plots the clusters on a map
plot_clusters(
fit,
var_name = "D_gct",
transform_var = log,
k = 4,
method = "ward",
year_labels = fit$year_labels,
category_names = fit$category_names,
map_list = NULL,
working_dir = getwd(),
file_name = paste0("Class-", var_name),
file_name2 = paste0("Class-", var_name, "-averages"),
replace_Inf_with_NA = TRUE,
size_threshold = 1e+05,
col = viridisLite::viridis,
yaxis_log = TRUE,
...
)
var_name |
Name of object from |
transform_var |
function to apply to |
k |
an integer scalar or vector with the desired number of groups |
method |
Distance metric. Default |
map_list |
output from |
replace_Inf_with_NA |
Boolean whether to replace |
Code to plot clusters to look for biogeographic shifts, as well as plotting averages across all sites-times assigned to a each cluster, for use when interpreting each cluster.
For details regarding spatial clustering see https://doi.org/10.1093/icesjms/fsac007
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.