Description Usage Arguments Value
View source: R/cluster_yields.R
Make dendrogram and single map
1 2 3 4 5 6 | explore_dendrogram(
processed_data,
cluster_number,
plot = TRUE,
output_path = NULL
)
|
processed_data |
sf; An sf object likely returned from |
cluster_number |
integer; number of clusters to be used. |
plot |
logical; **optional** should plot be returned in the current graphics device (likely in RStudio). Default is TRUE. |
output_path |
string; **optional** path where plot should be saved. Default is NULL. If path is provided, a PDF with the name "dendrogram_k_clusters" will be created, where k is the integer passed to cluster_number. |
A two panel plot with the first panel being the field map colored by cluster and the second panel being a dedrogram with colored rectangles showing the clusters. The colors in the two plots should match.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.