Co-association Analysis
The co-association analysis was used to investigate groups of loci associated with traits of interest. The results from the CANCOR analysis were used as the input matrix for the co-association analysis. The input matrix consisted of correlations of loci and environmental traits. The Euclidian pairwise distances between the correlations of loci and environmental traits were calculated using the dist function in R and clustered using hierarchical clustering in the stats package in R. Co-associations were visualised using the ComplexHeatmap package in R (Gu et al., 2016).