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.
plot_results(
data,
violin = T,
bounds = c(0, 1),
scaled = T,
y_high = 1,
colors = NULL,
ncol = 1
)A data frame, typically the output from the unmix function, containing the relative contributions of sediment sources.
A logical value. If TRUE, violin charts are used instead of density plots.
A numeric vector of length 2 specifying the lower and upper bounds for the data.
A logical value. If TRUE, the density plots are scaled.
The maximum value for the y-axis.
A character vector of colors to use for the plots.
The number of plots per row.