var_partitioning: Performing variation partitioning with p values

View source: R/var_partitioning_function.R

var_partitioningR Documentation

Performing variation partitioning with p values

Description

This function uses the varpart() function from vegan to compute all fractions and their respective p-values in a single table

Usage

var_partitioning(
  Y,
  env,
  clim = NULL,
  spa,
  percent_r2 = F,
  allow_negative_r2 = TRUE,
  round = 3
)

Arguments

Y

Species occurence matrix

env

Matrix of environmental variables

clim

Matrix of climate variables

spa

Matrix of spatial variables

percent_r2

Logical. Should the R2 values be converted in percentages?

allow_negative_r2

Logical. Should negative values be used to compute the R2 values?


RodolfoPelinson/AtlanticForestMetacommunity documentation built on Aug. 5, 2023, 3:53 p.m.