The combine.subsets function is best used to combine
different sets of landmark data collected from the same individuals.
This may be useful or necessary in the case that the researcher has
reason to believe that two morphological structures, which are not
spatially related, may nonetheless by phenotypically related
(integrated).
The inputs to this function can be either raw landmark coordinates or
aligned objects of class gpagen. If the former, the function can perform
a GPA on the input raw coordinates if desired.The function will also
attempt to scale configurations to their relative centroid sizes. One
should be aware that scaling to relative centroid size creates a new
configuration. The centroids of the combined configuration will be
different than either subset separately. See Collyer et al. (2020) for a
more detailed discussion of the effects of combining landmark
configurations.
Do not use this function lightly or haphazardly! Particularly if the input subsets differ in landmark density, scaling centroid sizes can have the effect of exaggerating the centroid sizes of smaller configurations. In this case it is likely best to normalize centroid sizes using the norm.CS argument (see below). However, it is preferable to avoid altogether combining subsets that differ substantially in their landmark density if at all possible (Collyer et al., 2020).
combine.subsets() (Expand for more details)
comb <- combine.subsets(lmk1, lmk2)
comb
##
## A total of 2 subsets were combined
##
## V1 V2
## Number of points in subset 6.0000000 6.0000000
## Mean centroid size 8.5952913 11.9354697
## Mean relative size 0.4186543 0.5813457
There are several objects included in the output of
combine.subsets:
Make sure that the specimens in your subsets are the same specimens and that they are in the same order! Otherwise, the coordinates will not be concatenated properly.