Visualize the Direction of Asymmetry using R and Geomorph


To visualize the direction of asymmetry in R you will use the plotRefToTarget function of Geomorph. It will draw a line from one set of coordinates to another. The plot will have grey points and black lines. There may be ways to change the color and size of the lines and points, but I have not figured out how to do this in R yet. You can also plot the direction and change the color of the lines in Matlab.

Files you will need:

mean_original_shape
mean_flipped_shape

you can also do it on an individual endocast basis:

morton1306slid[,,1] - flipped endocast
morton1306slid[,,2] - original endocast


plotRefToTarget(mean_flipped_shape, mean_original_shape, method = "vector", mag = 15)


"vector" tells it to plot lines, though there are other options (see below)
I use mag = 15 so the lines are long enough to get a clear idea of the direction.

You can remove the box and axes:

plotRefToTarget(mean_flipped_shape[110:969], mean_original_shape[110:969], method = "vector", mag = 15, box = FALSE, axes = FALSE)


This is the information from the Geomorph user manual:


No comments:

Post a Comment