plot.svem_significance_test {SVEMnet}R Documentation

Plot SVEM Significance Test Results for Multiple Responses

Description

Plots the Mahalanobis distances for the original and permuted data from multiple SVEM significance test results.

Usage

## S3 method for class 'svem_significance_test'
plot(..., labels = NULL)

Arguments

...

One or more objects of class svem_significance_test, which are the outputs from svem_significance_test.

labels

Optional character vector of labels for the responses. If not provided, the function uses the response variable names.

Details

This function creates a combined plot of the Mahalanobis distances (d_Y and d_pi_Y) for the original and permuted data from multiple SVEM significance test results. It groups the data by response and source type, displaying original and permutation distances side by side for each response.

**Usage Notes:**

Value

A ggplot object showing the distributions of Mahalanobis distances for all responses.

Acknowledgments

Development of this package was assisted by GPT o1-preview, which helped in constructing the structure of some of the code and the roxygen documentation. The code for the significance test is taken from the supplementary material of Karl (2024) (it was handwritten by that author).


[Package SVEMnet version 1.3.0 Index]