cor.SmaxN.plot: Plot SmaxN vs maxN for each pose and do a correlation

View source: R/9_Stats_functions.R

cor.SmaxN.plotR Documentation

Plot SmaxN vs maxN for each pose and do a correlation

Description

This function computes a list of abundance dataframes for each species. For each species, the dataframes contain the full number of camers (ie 12)

Usage

cor.SmaxN.plot(maxN_all, color_poses, shape_sp, comp_metric)

Arguments

maxN_all

a dataframe from the automat.maxN.setsp() function with SmaxN, maxN, SmaxN_row, species names and Poses number columns

comp_metric

the name of the metric to compare with the SmaxN. It could either be "SmaxN_row" or "maxN". ONLY for the plot, correlations tests are made for SmaxN_row and maxN.

colors_sp

a vector containing the names of the colors to use to plot the different species

shape_poses

three numerical value referring to the shape of the points used to plot SmaxN for each pose

Value

a plot saved in the output folder and the resultats of the correlation test


CmlMagneville/SmaxNanalysis documentation built on Jan. 28, 2024, 11:20 p.m.