my_mantel: Customed mantel

View source: R/my_mantel.R

my_mantelR Documentation

Customed mantel

Description

Customed mantel

Usage

my_mantel(
  y_mat,
  x_mat,
  y.dist = NULL,
  x.dist = NULL,
  foreach = NULL,
  method = NULL,
  ...
)

Arguments

y_mat

a dist or dataframe

x_mat

a dist or dataframe

y.dist

methods for dissimilarity calculation of y_mat

x.dist

methods for dissimilarity calculation of x_mat

foreach

conduct mantel test for each variables in x.dist or not (by default)

method

Correlation method, as accepted by cor: "pearson", "spearman" or "kendall"

...

further arguments for vegan::mantel

Value

a list contain 1) mode information. 2) pairwise dissimilarity of x_mat and y_mat, for visualization 3) mode. 4) summary of the mode


kun-ecology/ecoloop documentation built on Jan. 9, 2025, 10:20 a.m.