Ternary_Plot: Ternary diagrams with the CI_Method function results

View source: R/Ternary_Plot.R

Ternary_PlotR Documentation

Ternary diagrams with the CI_Method function results

Description

Visualizes Conservativeness Index (CI) predictions using ternary diagrams. Incorporates advanced hierarchical clustering to automatically group and color-code structurally similar apportionment solutions.

Usage

Ternary_Plot(
  data,
  tracers = 1:4,
  n_row = 1,
  n_col = 2,
  Means = FALSE,
  cluster = FALSE,
  dendro_lvls = 5,
  vrtl_sol = FALSE,
  vrtl = c(0.05, 0.9, 0.05),
  seed = NULL
)

Ternary_diagram(
  data,
  tracers = 1:4,
  n_row = 1,
  n_col = 2,
  Means = FALSE,
  cluster = FALSE,
  dendro_lvls = 5,
  vrtl_sol = FALSE,
  vrtl = c(0.05, 0.9, 0.05),
  seed = NULL
)

ternary_diagram(
  data,
  tracers = 1:4,
  n_row = 1,
  n_col = 2,
  Means = FALSE,
  cluster = FALSE,
  dendro_lvls = 5,
  vrtl_sol = FALSE,
  vrtl = c(0.05, 0.9, 0.05),
  seed = NULL
)

Arguments

data

List. The output generated by the CI_Method function.

tracers

Numeric vector. Indices of the tracers to display. Default 1:4.

n_row

Integer. Number of rows in the output grid layout. Default 1.

n_col

Integer. Number of columns in the output grid layout. Default 2.

Means

Logical. If TRUE, indicates the input utilizes mean and SD formats rather than raw observations. Default FALSE.

cluster

Logical. If TRUE, applies hierarchical clustering to group structurally similar ternary solutions. Default FALSE.

dendro_lvls

Integer. Number of branch levels to cut the clustering dendrogram. Default 5.

vrtl_sol

Logical. If TRUE, overlays a theoretical or target virtual solution on the plot. Default FALSE.

vrtl

Numeric vector. Apportionment values for the theoretical solution. Default c(0.05, 0.9, 0.05).

seed

Integer. Random seed for reproducible cluster ordering when cluster = TRUE. Default NULL.

Value

Ternary diagrams from the individual tracer predictions.


OceanTracer documentation built on Oct. 15, 2026, 5:09 p.m.