correlation_plot: Correlation matrix chart

View source: R/correlation_plot.R

correlation_plotR Documentation

Correlation matrix chart

Description

The function displays a correlation matrix of each of the properties divided by the different sources to help the user in the decision.

Usage

correlation_plot(
  data,
  columns = c(1:ncol(data) - 1),
  mixtures = FALSE,
  nmixtures = 1,
  colors = NULL
)

Arguments

data

Data frame containing sediment source and mixture data. Users should ensure their data is in a valid format by using the check_database() function before running this function.

columns

Numeric vector containing the index of the columns in the chart (the first column refers to the grouping variable)

mixtures

Boolean to include or exclude the mixture samples in the chart

nmixtures

Number of mixtures in the dataset

colors

Vector of colors to use for the scatterplot


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