Skip to contents

Generates plots from technical metrics in spatial touchstone.

Usage

plotMetrics(
  metrics_list = NULL,
  PlotAutocorr = T,
  PlotSparsity = T,
  PlotEntropy = T,
  PlotClusterSilhouette = T,
  ncol = 14,
  nrow = 1,
  rel_widths = c(0.75, 0.4, 0.5, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.75, 0.75, 0.8, 0.3,
    0.8, 0.8)
)

Arguments

metrics_list

A list containing the metrics results.

PlotAutocorr

Logical; if TRUE, plots the autocorrelation metric. Default is TRUE.

PlotSparsity

Logical; if TRUE, plots the sparsity metric;Default is TRUE.

PlotEntropy

Logical; if TRUE, plots the entropy metric; Default is TRUE.

PlotClusterSilhouette

Logical; if TRUE, plots the cluster silhouette metric; Default is TRUE.

ncol

Integer; the number of columns in the plot grid; Default is 14.

nrow

Integer; the number of rows in the plot grid; Default is 1.

rel_widths

Numeric vector; relative widths of columns in the plot grid.

Value

A plot object created with cowplot::plot_grid.