The loci_modules function allows the user to find groups of covarying loci on the RDA space.

loci_modules(RDA, nb_clusters)

Arguments

RDA

a RDA model from which to extract loci and environmental variable scores

nb_clusters

an integer specifying the number of cluster to identify

Value

A list containing :

  • loci : a data.frame with the cluster associated with each locus

  • polygons : polygon coordinates to outline the different cluster on a 2D RDA space

Details

Identify a discrete number of adaptive groups across the 2D RDA space. Next version will use more than two dimensions

Author

Thibaut Capblancq