plot.svem_significance_test function

Plot SVEM Significance Test Results for Multiple Responses

Plot SVEM Significance Test Results for Multiple Responses

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

## 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.

Returns

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

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:

  • Use this function to compare the significance test results across multiple responses.
  • The plot shows original and permutation distances next to each other for each response.

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).

  • Maintainer: Andrew T. Karl
  • License: GPL-2 | GPL-3
  • Last published: 2024-12-21

Useful links

    Downloads (last 30 days):