plot_results: Displays the results of an unmixing analysis

View source: R/plot_results.R

plot_resultsR Documentation

Displays the results of an unmixing analysis

Description

This function generates a plot showing the relative contribution of sediment sources to each mixture. The output of the unmix function should be used as input for this function.

Usage

plot_results(
  data,
  violin = T,
  bounds = c(0, 1),
  scaled = T,
  y_high = 1,
  colors = NULL,
  ncol = 1
)

Arguments

data

A data frame, typically the output from the unmix function, containing the relative contributions of sediment sources.

violin

A logical value. If TRUE, violin charts are used instead of density plots.

bounds

A numeric vector of length 2 specifying the lower and upper bounds for the data.

scaled

A logical value. If TRUE, the density plots are scaled.

y_high

The maximum value for the y-axis.

colors

A character vector of colors to use for the plots.

ncol

The number of plots per row.


fingerPro documentation built on Aug. 27, 2025, 5:11 p.m.