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

View source: R/8_SmaxN_fish_speed_function.R

speed.plot2R Documentation

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

Description

This function computes and save in the outputs folder a plot showing the SmaxN ratio between two speeds (y) for a set of species x

Usage

speed.plot2(maxN_speed1, maxN_speed2, color_poses, alpha, size, shape)

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

color_poses

a vector containing the names or hexadecimal code of the three colors used to plot the different poses

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

shape

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