speed.plot: Create and save the plot of SmaxN for two different fish...

View source: R/8_SmaxN_fish_speed_function.R

speed.plotR Documentation

Create and save the plot of SmaxN for two different fish speeds and a set of species

Description

This function computes and save in the outputs folder a plot showing SmaxN values for two different fish speeds (y and x) and a set of species (shapes)

Usage

speed.plot(maxN_speed1, maxN_speed2, color_sp, alpha, size, shape_poses)

Arguments

maxN_speed1

a dataframe from the automat.maxN.setsp() function gathering maxN values for each species of the set and for each pose computed with the first speed

maxN_speed2

a dataframe from the automat.maxN.setsp() function gathering maxN values for each species of the set and for each pose computed with the second speed

alpha

a vector containing the values of the two transparencies used to plot the different speed

size

a numerical value referring to the size of the points used to plot SmaxN

color

a vector containing the names or hexadecimal code of the two colors used to plot the different speed

shape

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

Value

a plot with y = SmaxN values with two different colors for the two different speeds, x = species


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