create_distance_matrix: Create a Distance Matrix from Edge Crossing Data

View source: R/ggparallel_specific_utils.R

create_distance_matrixR Documentation

Create a Distance Matrix from Edge Crossing Data

Description

Converts the results of count_all_edge_crossings() into a distance matrix, where each entry represents the number of crossings between two columns.

Usage

create_distance_matrix(data, as.dist = FALSE)

Arguments

data

A data frame with columns col1, col2, and crossings.

as.dist

Logical; if TRUE, converts the matrix to a dist object.

Value

A square matrix of distances, or a dist object if as.dist = TRUE.


ggEDA documentation built on Sept. 9, 2025, 5:45 p.m.