Description Usage Arguments Details Value Author(s) References Examples

View source: R/bilat.symmetry.r

Function performs an analysis of directional and fluctuating asymmetry for bilaterally symmetric objects

1 2 3 |

`A` |
Either A 3D array (p x k x n) containing raw landmarks (requiring GPA to be performed) or a gpagen object (if GPA has been previously performed). If one
wishes to incorporate semilandmarks, GPA should be performed first using |

`ind` |
A vector containing labels for each individual. For matching symmetry, the matched pairs receive the same label (replicates also receive the same label). |

`side` |
An optional vector (for matching symmetry) designating which object belongs to which 'side-group' |

`replicate` |
An optional vector designating which objects belong to which group of replicates. |

`object.sym` |
A logical value specifying whether the analysis should proceed based on object symmetry =TRUE or matching symmetry =FALSE |

`land.pairs` |
An optional matrix (for object symmetry) containing numbers for matched pairs of landmarks across the line of symmetry |

`data` |
A data frame for the function environment, see |

`iter` |
Number of iterations for significance testing. |

`seed` |
An optional argument for setting the seed for random permutations of the resampling procedure. If left NULL (the default), the exact same P-values will be found for repeated runs of the analysis (with the same number of iterations). If seed = "random", a random seed will be used, and P-values will vary. One can also specify an integer for specific seed values, which might be of interest for advanced users. |

`RRPP` |
A logical value indicating whether residual randomization should be used for significance testing. |

`print.progress` |
A logical value to indicate whether a progress bar should be printed to the screen. This is helpful for long-running analyses. |

`...` |
Arguments to pass onto gpagen |

The function quantifies components of shape variation for a set of specimens as described by their patterns of symmetry and asymmetry. Here, shape variation is decomposed into variation among individuals, variation among sides (directional asymmetry), and variation due to an individual x side interaction (fluctuating symmetry). These components are then statistically evaluated using Procrustes ANOVA. Statistical assessment of model effects for shape variation is accomplished using permutation procedures. Methods for both matching symmetry and object symmetry can be implemented. Matching symmetry is when each object contains mirrored pairs of structures (e.g., right and left hands) while object symmetry is when a single object is symmetric about a midline (e.g., right and left sides of human faces). Details on general approaches for the study of symmetry in geometric morphometrics may be found in: Mardia et al. 2000; Klingenberg et al. 2002.

As input, the function receives either A 3D array (p x k x n) containing raw landmarks (requiring
GPA to be performed) or a gpagen object (if GPA has been previously performed) or a geomorphShapes object.
If one wishes to incorporate semilandmarks, GPA can either be performed first using gpagen, or within bilat.symmetry
by passing adequate GPA arguments (i.e. curves, surfaces, ProcD etc, see `gpagen`

.
For "object.sym = FALSE, landmarks should be of dimension (p x k x 2n), as each specimen is
represented by both left and right configurations.

Analyses of symmetry for matched pairs of objects is implemented when object.sym=FALSE. Here, a 3D array [p x k x 2n] contains the landmark coordinates for all pairs of structures (2 structures for each of n specimens). Because the two sets of structures are on opposite sides, they represent mirror images, and one set must be reflected prior to the analysis to allow landmark correspondence. IT IS ASSUMED THAT THE USER HAS DONE THIS PRIOR TO PERFORMING THE SYMMETRY ANALYSIS. Reflecting a set of specimens may be accomplished by multiplying one coordinate dimension by '-1' for these structures (either the x-, the y-, or the z-dimension). A vector containing information on individuals and sides must also be supplied. Replicates of each specimen may also be included in the dataset, and when specified will be used as measurement error (see Klingenberg and McIntyre 1998).

Analyses of object symmetry is implemented when object.sym=TRUE. Here, a 3D array [p x k x n] contains the landmark coordinates for all n specimens. To obtain information about asymmetry, the function generates a second set of objects by reflecting them about one of their coordinate axes. The landmarks across the line of symmetry are then relabeled to obtain landmark correspondence. The user must supply a list of landmark pairs. A vector containing information on individuals must also be supplied. Replicates of each specimen may also be included in the dataset, and when specified will be used as measurement error.

Compared to older versions of geomorph, some results can be expected to be slightly different. Starting with geomorph 3.0, results use only type I sums of squares (SS) with either full randomization of raw shape values or RRPP (preferred with nested terms) for analysis of variance (ANOVA). Older versions used a combination of parametric and non-parametric results, as well as a combination of type I and type III SS. While analytical conclusions should be consistent (i.e., "significance" of effects is the same), these updates maintain consistency in analytical philosophy. This change will require longer computation time for large datasets, but the trade-off allows users to have more flexibility and eliminates combining disparate analytical philosophies.

Note also that significance of terms in the model are found by comparing F-values for each term to those obtained via permutation. F-ratios and df are not strictly necessary (a ratio of SS would suffice), but they are reported as is standard for anova tables. Additionally, users will notice that the df reported are based on the number of observations rather than a combination of objects * coordinates * dimensions, as is sometimes found in morphometric studies of symmetry. However, this change has no effect on hypothesis testing, as only SS vary among permutations (df, coordinates, and dimensions are constants).

The generic functions, `print`

, `summary`

, and `plot`

all work with `bilat.symmetry`

.

An object of class "bilat.symmetry" returns a list of the following

`shape.anova` |
An analysis of variance table for the shape data. |

`size.anova` |
An analysis of variance table for the shape data (when object.sym=FALSE). |

`symm.shape` |
The symmetric component of shape variation. |

`asymm.shape` |
The asymmetric component of shape variation. |

`DA.component` |
The directional asymmetry component, found as the mean shape for each side. |

`FA.component` |
The fluctuating asymmetry component for each specimen, found as the specimen-specific side deviation adjusted for the mean directional asymmetry in the dataset. |

`data.type` |
A value indicating whether the analysis was performed as Object or Matching symmetry. |

`permutations` |
The number of random permutations used. |

`random.shape.F` |
A matrix of random F-values from the Shape analysis. |

`random.size.F` |
A matrix of random F-values from the Centroid Size analysis. |

`perm.method` |
A value indicating whether "Raw" values were shuffled or "RRPP" performed. |

`procD.lm.shape` |
A list of typical output from an object of class procD.lm, for shape |

`procD.lm.size` |
If applicable, a list of typical output from an object of class procD.lm, for size. |

`call` |
The matched call. |

Dean Adams and Michael Collyer

Klingenberg, C.P. and G.S. McIntyre. 1998. Quantitative genetics of geometric shape in the mouse mandible. Evolution. 55:2342-2352.

Mardia, K.V., F.L. Bookstein, and I.J. Moreton. 2000. Statistical assessment of bilateral symmetry of shapes. Biometrika. 87:285-300.

Klingenberg, C.P., M. Barluenga, and A. Meyer. 2002. Shape analysis of symmetric structures: quantifying variation among individuals and asymmetry. Evolution. 56:1909-1920.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | ```
#Example of matching symmetry
data(mosquito)
gdf <- geomorph.data.frame(wingshape = mosquito$wingshape, ind=mosquito$ind, side=mosquito$side,
replicate=mosquito$replicate)
mosquito.sym <- bilat.symmetry(A = wingshape, ind = ind, side = side,
replicate = replicate, object.sym = FALSE, RRPP = TRUE, iter = 499, data = gdf)
summary(mosquito.sym)
plot(mosquito.sym, warpgrids = TRUE)
mosquito.sym$shape.anova # extract just the anova table on shape
# Previous example, performing GPA first
Y.gpa <- gpagen(mosquito$wingshape)
mosquito.sym2 <- bilat.symmetry(A = Y.gpa, ind = ind, side = side,
replicate = replicate, object.sym = FALSE, RRPP = TRUE, iter = 499, data = gdf)
summary(mosquito.sym2)
summary(mosquito.sym) # same results
#Example of object symmetry
data(scallops)
gdf <- geomorph.data.frame(shape = scallops$coorddata, ind=scallops$ind)
scallop.sym <- bilat.symmetry(A = shape, ind = ind, object.sym = TRUE,
land.pairs=scallops$land.pairs, data = gdf, RRPP = TRUE, iter = 499)
summary(scallop.sym)
# Previous example, incorporating semilandmarks
scallop.sym <- bilat.symmetry(A = shape, ind = ind, object.sym = TRUE,
curves= scallops$curvslide, surfaces = scallops$surfslide,
land.pairs=scallops$land.pairs, data = gdf, RRPP = TRUE, iter = 499)
summary(scallop.sym)
# NOTE one can also: plot(scallop.sym, warpgrids = TRUE, mesh = NULL)
# NOTE one can also: scallop.sym$data.type # recall the symmetry type
``` |

geomorph documentation built on April 29, 2018, 9:03 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.