make_dendrogram_plot: Create active binding to plot code in a split screen device

Description Usage Arguments Value

View source: R/cluster_yields.R

Description

Create active binding to plot code in a split screen device

Usage

1
make_dendrogram_plot(plot_data, tree, cluster_number)

Arguments

plot_data

sf; a copy of the processed_data passed to \exploreexplore_dendrogram. processed_data is an sf object, likely returned from make_cluster_data. Object should include the features to be clustered and their associated polygon geometries.

tree

hclust; an hclust object returned from ClustGeo::hclustgeo.

cluster_number

integer; number of clusters to be used.

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.