View source: R/align.reflect.R
align.reflect | R Documentation |
The input array should contain landmark coordinates with p, 2, and n dimensions,
where n is the number of specimens and p is the number of landmarks).
Dimension 2 must have two columns that contain X and Y locations of the landmark.
The function will pass extra arguments to landmark.plot
,
including links
. Plotting the landmarks can be useful to ensure that the reference
specimen and pivot point result in sensible alignments for the other specimens.
If the input is a list
, all elements will be retained in the output.
If a provenance
element is present, then it will be expanded to include an entry
for this processing step.
align.reflect( A, top.pt = NULL, bottom.pt = NULL, left.pt = NULL, right.pt = NULL, show.plot = TRUE, verbose = TRUE, provenance = NULL, ... )
A |
A 3-dimensional array containing XY shape corrdinates for multiple specimens, or a list containing such as an array and data provenance. |
top.pt |
The row number of the landmark that should be on top. |
bottom.pt |
The row number of the landmark that should be on the bottom. |
left.pt |
The row number of the landmark that should be on the left. |
right.pt |
The row number of the landmark that should be on the right. |
show.plot |
A logical factor or index number specifying whether to display a plot showing the alginment of one specimen relative to the reference.
If |
verbose |
A logical factor specifying whether to report out corrections to each specimen. |
provenance |
An object that should be retained for data provenance. |
If no values are given for the top, bottom, left or right landmarks, then all specimens will be oriented to match the first specimen in the array.
Returns a list with coords
, provenance
, and
any other potential list elements from the input.
Dave Angelini david.r.angelini@gmail.com [aut, cre]
data(plethodon, package = "geomorph") pletho.links <- matrix(c(4,5,5,6,6,7,7,8,8,9,9,10,10,11,2,4,12,2,3,5), ncol = 2, byrow = TRUE) curated.coords <- align.reflect( plethodon, top.pt = 8, right.pt = 7, links = pletho.links )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.