Traits and fitness

Settings


              

R code

The calls that repeat this analysis in R with the settings above.

              
                
                Download R script
              
            

Selection differentials and gradients

S total selection; β directional; γ quadratic curvature (negative is consistent with stabilising selection, positive with disruptive); γij correlational. * p < 0.05, ** < 0.01, *** < 0.001.

Summary

Gradient plot

Assumption checks

Normality of the traits (Mardia, Shapiro-Wilk), the largest VIF, individuals per quadratic term, and the residuals or dispersion of the gradient model. For reporting only. With the performance package installed its tests are added.


Cubic spline (Schluter 1988) with bootstrap 95% band.
Download plot (PNG)

Mean fitness of a population against its mean for this trait, with the fitness function dashed.



A group's peak is the highest point of the surface within that group's own range: filled when it is a peak of the surface, open when the surface keeps rising past the group's range or the edge of the data.
Download plot (PNG)




Mean fitness for each possible population mean. Drag to rotate. Diamond: optimum; circle: current mean.
Download 2D plot (PNG)