explore_dendrogram: Make dendrogram and single map

Description Usage Arguments Value

View source: R/cluster_yields.R

Description

Make dendrogram and single map

Usage

1
2
3
4
5
6
explore_dendrogram(
  processed_data,
  cluster_number,
  plot = TRUE,
  output_path = NULL
)

Arguments

processed_data

sf; An sf object likely returned from make_cluster_data. Object should include the features to be clustered and their associated polygon geometries.

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.

Value

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.


smmueller/plotdesignr documentation built on Jan. 5, 2022, 10:55 a.m.