Learn R Programming

topologyR (version 0.1.2)

visualize_topology_thresholds: Visualize and Compare Different Threshold Methods

Description

This function creates a comprehensive visualization of different threshold methods used in topology analysis. It generates three distinct plots to help understand the relationships between different threshold methods and their effects on topological structure.

Usage

visualize_topology_thresholds(data, plot = TRUE)

Value

A data.frame with one row per threshold method containing:

method

Character. Name of the threshold calculation method.

threshold

Numeric. The calculated threshold value.

base_size

Integer. Number of sets in the resulting topological base.

If plot = TRUE, generates three plots as side effects: (1) Bar chart comparing threshold values by method, (2) Bar chart comparing base sizes by method, (3) Scatter plot showing threshold vs base size relationship.

Arguments

data

Numeric vector to analyze

plot

Logical indicating whether to display plots (default: TRUE)

Details

Visualize Topology Thresholds

Examples

Run this code
# \donttest{
# Generate sample data
data <- rnorm(100)

# Visualize threshold comparisons
results <- visualize_topology_thresholds(data)
# }

Run the code above in your browser using DataLab